Thread (18 messages) flat view 18 messages, 6 authors, 2015-08-13

Re: [PATCH 2/5] net: rfkill: add rfkill_find_type function

From: Sergei Shtylyov <hidden>
Date: 2015-08-06 11:31:36
Also in: linux-tegra, linux-wireless, lkml

Hello.

On 8/5/2015 4:39 PM, Heikki Krogerus wrote:
Helper for finding the type based on name. Useful if the
type needs to be determined based on device property.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
---
  include/linux/rfkill.h | 15 +++++++++++++
  net/rfkill/core.c      | 57 +++++++++++++++++++++++++-------------------------
  2 files changed, 44 insertions(+), 28 deletions(-)
quoted hunk ↗ jump to hunk
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index d901078..02f563c 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
[...]
quoted hunk ↗ jump to hunk
@@ -268,6 +277,12 @@ static inline bool rfkill_blocked(struct rfkill *rfkill)
  {
  	return false;
  }
+
+static inline enum rfkill_type rfkill_find_type(const char *name)
+{
+	return 0;
 > +}
 > +

    Shouldn't it return some member of 'enum rfkill_type' instead?

[...]

MBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help