[RFKILL]: Remove IRDA
As Dmitry pointed out earlier, rfkill-input.c doesn't support irda because there are no users and we shouldn't add unrequired KEY_ defines. However, RFKILL_TYPE_IRDA was defined in the rfkill.h header file and would confuse people about whether it is implemented or not. This patch removes IRDA support completely, so it can be added whenever a driver wants the feature. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
077130c0cf
commit
234a0ca6f1
@@ -106,9 +106,6 @@ static ssize_t rfkill_type_show(struct device *dev,
|
||||
case RFKILL_TYPE_BLUETOOTH:
|
||||
type = "bluetooth";
|
||||
break;
|
||||
case RFKILL_TYPE_IRDA:
|
||||
type = "irda";
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
@@ -281,7 +278,7 @@ static void rfkill_remove_switch(struct rfkill *rfkill)
|
||||
/**
|
||||
* rfkill_allocate - allocate memory for rfkill structure.
|
||||
* @parent: device that has rf switch on it
|
||||
* @type: type of the switch (wlan, bluetooth, irda)
|
||||
* @type: type of the switch (RFKILL_TYPE_*)
|
||||
*
|
||||
* This function should be called by the network driver when it needs
|
||||
* rfkill structure. Once the structure is allocated the driver shoud
|
||||
|
Reference in New Issue
Block a user