summaryrefslogtreecommitdiff
path: root/drivers/media/IR/ir-sysfs.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2010-04-24 18:14:00 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 12:58:25 -0300
commit5a143b12ebbd37154cb06699a757e9c5845c5e19 (patch)
tree349830c62baf1feca7c419f801a2576b89e25736 /drivers/media/IR/ir-sysfs.c
parent6718e8ad950f73fc895b98a413a63cb2add3b4d2 (diff)
downloadlwn-5a143b12ebbd37154cb06699a757e9c5845c5e19.tar.gz
lwn-5a143b12ebbd37154cb06699a757e9c5845c5e19.zip
V4L/DVB: ir-core: remove IR_TYPE_PD
Pulse-distance is not a protocol, it is a line coding (used by some protocols, like NEC). Looking at the uses of IR_TYPE_PD, the real protocol seems to be NEC in all cases (drivers/media/video/cx88/cx88-input.c is the only user). So, remove IR_TYPE_PD while it is still easy to do so. Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-sysfs.c')
-rw-r--r--drivers/media/IR/ir-sysfs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/IR/ir-sysfs.c b/drivers/media/IR/ir-sysfs.c
index 002b14123319..d7da63e16c92 100644
--- a/drivers/media/IR/ir-sysfs.c
+++ b/drivers/media/IR/ir-sysfs.c
@@ -57,8 +57,6 @@ static ssize_t show_protocol(struct device *d,
s = "Unknown";
else if (ir_type == IR_TYPE_RC5)
s = "rc-5";
- else if (ir_type == IR_TYPE_PD)
- s = "pulse-distance";
else if (ir_type == IR_TYPE_NEC)
s = "nec";
else if (ir_type == IR_TYPE_RC6)
@@ -100,8 +98,6 @@ static ssize_t store_protocol(struct device *d,
while ((buf = strsep((char **) &data, " \n")) != NULL) {
if (!strcasecmp(buf, "rc-5") || !strcasecmp(buf, "rc5"))
ir_type |= IR_TYPE_RC5;
- if (!strcasecmp(buf, "pd") || !strcasecmp(buf, "pulse-distance"))
- ir_type |= IR_TYPE_PD;
if (!strcasecmp(buf, "nec"))
ir_type |= IR_TYPE_NEC;
if (!strcasecmp(buf, "jvc"))
@@ -146,8 +142,6 @@ static ssize_t show_supported_protocols(struct device *d,
buf += sprintf(buf, "unknown ");
if (ir_dev->props->allowed_protos & IR_TYPE_RC5)
buf += sprintf(buf, "rc-5 ");
- if (ir_dev->props->allowed_protos & IR_TYPE_PD)
- buf += sprintf(buf, "pulse-distance ");
if (ir_dev->props->allowed_protos & IR_TYPE_NEC)
buf += sprintf(buf, "nec ");
if (buf == orgbuf)