aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/ir-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/IR/ir-sysfs.c')
-rw-r--r--drivers/media/IR/ir-sysfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/IR/ir-sysfs.c b/drivers/media/IR/ir-sysfs.c
index ceec980552a4..3ec760a98061 100644
--- a/drivers/media/IR/ir-sysfs.c
+++ b/drivers/media/IR/ir-sysfs.c
@@ -63,6 +63,8 @@ static ssize_t show_protocol(struct device *d,
63 s = "nec"; 63 s = "nec";
64 else if (ir_type == IR_TYPE_RC6) 64 else if (ir_type == IR_TYPE_RC6)
65 s = "rc6"; 65 s = "rc6";
66 else if (ir_type == IR_TYPE_JVC)
67 s = "jvc";
66 else 68 else
67 s = "other"; 69 s = "other";
68 70
@@ -100,6 +102,8 @@ static ssize_t store_protocol(struct device *d,
100 ir_type |= IR_TYPE_PD; 102 ir_type |= IR_TYPE_PD;
101 if (!strcasecmp(buf, "nec")) 103 if (!strcasecmp(buf, "nec"))
102 ir_type |= IR_TYPE_NEC; 104 ir_type |= IR_TYPE_NEC;
105 if (!strcasecmp(buf, "jvc"))
106 ir_type |= IR_TYPE_JVC;
103 } 107 }
104 108
105 if (!ir_type) { 109 if (!ir_type) {