summaryrefslogtreecommitdiffstats
path: root/rfkill.c
diff options
context:
space:
mode:
authorSamuel Ortiz2013-05-03 11:57:50 +0200
committerJohannes Berg2013-05-03 13:21:53 +0200
commit3e8b4b29132cd939646b851eaf1a5f8ebcaa8649 (patch)
tree415950ec78df926cd8905b1977a1f834c3d5c49a /rfkill.c
parentversion 0.4 (diff)
downloadkernel-qcow2-util-linux-3e8b4b29132cd939646b851eaf1a5f8ebcaa8649.tar.gz
kernel-qcow2-util-linux-3e8b4b29132cd939646b851eaf1a5f8ebcaa8649.tar.xz
kernel-qcow2-util-linux-3e8b4b29132cd939646b851eaf1a5f8ebcaa8649.zip
Add NFC support
rfkill.h is synced with the kernel header, man page is updated and RFKILL_TYPE_NFC is mapped to "nfc".
Diffstat (limited to 'rfkill.c')
-rw-r--r--rfkill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rfkill.c b/rfkill.c
index bda649a97..b2672ee3c 100644
--- a/rfkill.c
+++ b/rfkill.c
@@ -111,6 +111,8 @@ static const char *type2string(enum rfkill_type type)
return "GPS";
case RFKILL_TYPE_FM:
return "FM";
+ case RFKILL_TYPE_NFC:
+ return "NFC";
case NUM_RFKILL_TYPES:
return NULL;
}
@@ -133,6 +135,7 @@ static const struct rfkill_type_str rfkill_type_strings[] = {
{ .type = RFKILL_TYPE_WWAN, .name = "wwan" },
{ .type = RFKILL_TYPE_GPS, .name = "gps" },
{ .type = RFKILL_TYPE_FM, .name = "fm" },
+ { .type = RFKILL_TYPE_NFC, .name = "nfc" },
{ .name = NULL }
};