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

2015-08-13 Thread Johannes Berg
On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: +static const char *rfkill_types[NUM_RFKILL_TYPES] = { + [RFKILL_TYPE_WLAN] = wlan, + [RFKILL_TYPE_BLUETOOTH] = bluetooth, + [RFKILL_TYPE_UWB] = ultrawideband, + [RFKILL_TYPE_WIMAX] = wimax, +

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

2015-08-13 Thread Heikki Krogerus
Hi, On Thu, Aug 13, 2015 at 11:27:46AM +0200, Johannes Berg wrote: On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: +static const char *rfkill_types[NUM_RFKILL_TYPES] = { + [RFKILL_TYPE_WLAN] = wlan, + [RFKILL_TYPE_BLUETOOTH] = bluetooth, + [RFKILL_TYPE_UWB]

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

2015-08-06 Thread Heikki Krogerus
On Wed, Aug 05, 2015 at 05:07:29PM +0300, Andy Shevchenko wrote: On Wed, 2015-08-05 at 16:39 +0300, 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

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

2015-08-06 Thread Andy Shevchenko
On Thu, 2015-08-06 at 11:30 +0300, Heikki Krogerus wrote: On Wed, Aug 05, 2015 at 05:07:29PM +0300, Andy Shevchenko wrote: On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: +static inline enum rfkill_type rfkill_find_type(const char *name) +{ + return 0; Hmm…

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

2015-08-06 Thread Sergei Shtylyov
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.kroge...@linux.intel.com --- include/linux/rfkill.h | 15 +

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

2015-08-05 Thread Heikki Krogerus
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.kroge...@linux.intel.com --- include/linux/rfkill.h | 15 + net/rfkill/core.c | 57

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

2015-08-05 Thread Andy Shevchenko
On Wed, 2015-08-05 at 16:39 +0300, 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.kroge...@linux.intel.com --- include/linux/rfkill.h | 15 +