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 3ec760a9806..4c0bc32dcba 100644
--- a/drivers/media/IR/ir-sysfs.c
+++ b/drivers/media/IR/ir-sysfs.c
@@ -65,6 +65,8 @@ static ssize_t show_protocol(struct device *d,
s = "rc6";
else if (ir_type == IR_TYPE_JVC)
s = "jvc";
+ else if (ir_type == IR_TYPE_SONY)
+ s = "sony";
else
s = "other";
@@ -104,6 +106,8 @@ static ssize_t store_protocol(struct device *d,
ir_type |= IR_TYPE_NEC;
if (!strcasecmp(buf, "jvc"))
ir_type |= IR_TYPE_JVC;
+ if (!strcasecmp(buf, "sony"))
+ ir_type |= IR_TYPE_SONY;
}
if (!ir_type) {