net: rfkill: add rfkill_find_type function
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 25 Jan 2016 09:03:46 +0000 (12:03 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:12:45 +0000 (09:12 +0100)
commit648b50dd6abf8e6e5b589bb8e6873a4596389dbe
treee526a0a913b67e209252863132e75c55019c1557
parent7837a7778268191dae5f6622f2b92b8b37cb8d7f
net: rfkill: add rfkill_find_type function

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>
[modify rfkill_types array and BUILD_BUG_ON to not cause errors]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/rfkill.h
net/rfkill/core.c