diff options
Diffstat (limited to 'recipes-kernel/linux/linux-yocto-3.14/h1940/0001-rfkill-add-IR-type.patch')
-rw-r--r-- | recipes-kernel/linux/linux-yocto-3.14/h1940/0001-rfkill-add-IR-type.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/recipes-kernel/linux/linux-yocto-3.14/h1940/0001-rfkill-add-IR-type.patch b/recipes-kernel/linux/linux-yocto-3.14/h1940/0001-rfkill-add-IR-type.patch deleted file mode 100644 index 0045cf2..0000000 --- a/recipes-kernel/linux/linux-yocto-3.14/h1940/0001-rfkill-add-IR-type.patch +++ /dev/null @@ -1,59 +0,0 @@ -From 674eef7154d529886d5e9fe77914e9bc77e549b0 Mon Sep 17 00:00:00 2001 -From: Vasily Khoruzhick <anarsoul@gmail.com> -Date: Thu, 17 Oct 2013 12:19:47 +0300 -Subject: [PATCH 01/17] rfkill: add IR type - -Infrared receivers/transmitters can also be disabled, -so add IR type to rfkill subsystem - -Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> ---- - include/uapi/linux/rfkill.h | 2 ++ - net/rfkill/core.c | 4 +++- - 2 files changed, 5 insertions(+), 1 deletion(-) - -diff --git a/include/uapi/linux/rfkill.h b/include/uapi/linux/rfkill.h -index 058757f..d4ae526 100644 ---- a/include/uapi/linux/rfkill.h -+++ b/include/uapi/linux/rfkill.h -@@ -38,6 +38,7 @@ - * @RFKILL_TYPE_GPS: switch is on a GPS device. - * @RFKILL_TYPE_FM: switch is on a FM radio device. - * @RFKILL_TYPE_NFC: switch is on an NFC device. -+ * @RFKILL_TYPE_IR: switch is on an IR device. - * @NUM_RFKILL_TYPES: number of defined rfkill types - */ - enum rfkill_type { -@@ -50,6 +51,7 @@ enum rfkill_type { - RFKILL_TYPE_GPS, - RFKILL_TYPE_FM, - RFKILL_TYPE_NFC, -+ RFKILL_TYPE_IR, - NUM_RFKILL_TYPES, - }; - -diff --git a/net/rfkill/core.c b/net/rfkill/core.c -index ed7e0b4..4c4abb6 100644 ---- a/net/rfkill/core.c -+++ b/net/rfkill/core.c -@@ -585,7 +585,7 @@ static DEVICE_ATTR_RO(name); - - static const char *rfkill_get_type_str(enum rfkill_type type) - { -- BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_NFC + 1); -+ BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_IR + 1); - - switch (type) { - case RFKILL_TYPE_WLAN: -@@ -604,6 +604,8 @@ static const char *rfkill_get_type_str(enum rfkill_type type) - return "fm"; - case RFKILL_TYPE_NFC: - return "nfc"; -+ case RFKILL_TYPE_IR: -+ return "ir"; - default: - BUG(); - } --- -1.9.3 - |