diff options
author | David Härdeman <david@hardeman.nu> | 2014-04-03 19:32:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-25 18:10:43 -0400 |
commit | 9d2f1d3cdedd4d3efff8d14f1f49cf73e2f5cc36 (patch) | |
tree | 7219355d62954d139ae84d5b781be3e51287dd37 | |
parent | c5540fbb9de39ceec108a889133664a887c2f55a (diff) |
[media] rc-core: rename dev->scanmask to dev->scancode_mask
We already have dev->scancode_filter and dev->scancode_wakeup_filter
so rename dev->scanmask to dev->scancode_mask for consistency.
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/pci/cx88/cx88-input.c | 2 | ||||
-rw-r--r-- | drivers/media/pci/ttpci/budget-ci.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/rc-main.c | 4 | ||||
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-input.c | 2 | ||||
-rw-r--r-- | drivers/media/usb/tm6000/tm6000-input.c | 2 | ||||
-rw-r--r-- | include/media/rc-core.h | 5 |
6 files changed, 9 insertions, 8 deletions
diff --git a/drivers/media/pci/cx88/cx88-input.c b/drivers/media/pci/cx88/cx88-input.c index 93ff6a7f2354..3f1342c98b46 100644 --- a/drivers/media/pci/cx88/cx88-input.c +++ b/drivers/media/pci/cx88/cx88-input.c | |||
@@ -478,7 +478,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) | |||
478 | dev->priv = core; | 478 | dev->priv = core; |
479 | dev->open = cx88_ir_open; | 479 | dev->open = cx88_ir_open; |
480 | dev->close = cx88_ir_close; | 480 | dev->close = cx88_ir_close; |
481 | dev->scanmask = hardware_mask; | 481 | dev->scancode_mask = hardware_mask; |
482 | 482 | ||
483 | if (ir->sampling) { | 483 | if (ir->sampling) { |
484 | dev->driver_type = RC_DRIVER_IR_RAW; | 484 | dev->driver_type = RC_DRIVER_IR_RAW; |
diff --git a/drivers/media/pci/ttpci/budget-ci.c b/drivers/media/pci/ttpci/budget-ci.c index 41ce7dec60e6..1feeeff3681b 100644 --- a/drivers/media/pci/ttpci/budget-ci.c +++ b/drivers/media/pci/ttpci/budget-ci.c | |||
@@ -234,7 +234,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci) | |||
234 | break; | 234 | break; |
235 | } | 235 | } |
236 | if (!budget_ci->ir.full_rc5) | 236 | if (!budget_ci->ir.full_rc5) |
237 | dev->scanmask = 0xff; | 237 | dev->scancode_mask = 0xff; |
238 | 238 | ||
239 | error = rc_register_device(dev); | 239 | error = rc_register_device(dev); |
240 | if (error) { | 240 | if (error) { |
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index c3fb8f8f192b..39e4b5ffe141 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c | |||
@@ -285,8 +285,8 @@ static unsigned int ir_establish_scancode(struct rc_dev *dev, | |||
285 | * IR tables from other remotes. So, we support specifying a mask to | 285 | * IR tables from other remotes. So, we support specifying a mask to |
286 | * indicate the valid bits of the scancodes. | 286 | * indicate the valid bits of the scancodes. |
287 | */ | 287 | */ |
288 | if (dev->scanmask) | 288 | if (dev->scancode_mask) |
289 | scancode &= dev->scanmask; | 289 | scancode &= dev->scancode_mask; |
290 | 290 | ||
291 | /* First check if we already have a mapping for this ir command */ | 291 | /* First check if we already have a mapping for this ir command */ |
292 | for (i = 0; i < rc_map->len; i++) { | 292 | for (i = 0; i < rc_map->len; i++) { |
diff --git a/drivers/media/usb/cx231xx/cx231xx-input.c b/drivers/media/usb/cx231xx/cx231xx-input.c index adcdd92179b2..05f0434919d4 100644 --- a/drivers/media/usb/cx231xx/cx231xx-input.c +++ b/drivers/media/usb/cx231xx/cx231xx-input.c | |||
@@ -91,7 +91,7 @@ int cx231xx_ir_init(struct cx231xx *dev) | |||
91 | dev->init_data.get_key = get_key_isdbt; | 91 | dev->init_data.get_key = get_key_isdbt; |
92 | dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; | 92 | dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; |
93 | /* The i2c micro-controller only outputs the cmd part of NEC protocol */ | 93 | /* The i2c micro-controller only outputs the cmd part of NEC protocol */ |
94 | dev->init_data.rc_dev->scanmask = 0xff; | 94 | dev->init_data.rc_dev->scancode_mask = 0xff; |
95 | dev->init_data.rc_dev->driver_name = "cx231xx"; | 95 | dev->init_data.rc_dev->driver_name = "cx231xx"; |
96 | dev->init_data.type = RC_BIT_NEC; | 96 | dev->init_data.type = RC_BIT_NEC; |
97 | info.addr = 0x30; | 97 | info.addr = 0x30; |
diff --git a/drivers/media/usb/tm6000/tm6000-input.c b/drivers/media/usb/tm6000/tm6000-input.c index 8a519f51609a..26b2ebb62547 100644 --- a/drivers/media/usb/tm6000/tm6000-input.c +++ b/drivers/media/usb/tm6000/tm6000-input.c | |||
@@ -443,7 +443,7 @@ int tm6000_ir_init(struct tm6000_core *dev) | |||
443 | /* input setup */ | 443 | /* input setup */ |
444 | rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC; | 444 | rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC; |
445 | /* Neded, in order to support NEC remotes with 24 or 32 bits */ | 445 | /* Neded, in order to support NEC remotes with 24 or 32 bits */ |
446 | rc->scanmask = 0xffff; | 446 | rc->scancode_mask = 0xffff; |
447 | rc->priv = ir; | 447 | rc->priv = ir; |
448 | rc->change_protocol = tm6000_ir_change_protocol; | 448 | rc->change_protocol = tm6000_ir_change_protocol; |
449 | if (dev->int_in.endp) { | 449 | if (dev->int_in.endp) { |
diff --git a/include/media/rc-core.h b/include/media/rc-core.h index 4f9e187d05bf..3047837db1cc 100644 --- a/include/media/rc-core.h +++ b/include/media/rc-core.h | |||
@@ -80,11 +80,12 @@ enum rc_filter_type { | |||
80 | * @enabled_wakeup_protocols: bitmask with the enabled RC_BIT_* wakeup protocols | 80 | * @enabled_wakeup_protocols: bitmask with the enabled RC_BIT_* wakeup protocols |
81 | * @scancode_filter: scancode filter | 81 | * @scancode_filter: scancode filter |
82 | * @scancode_wakeup_filter: scancode wakeup filters | 82 | * @scancode_wakeup_filter: scancode wakeup filters |
83 | * @scanmask: some hardware decoders are not capable of providing the full | 83 | * @scancode_mask: some hardware decoders are not capable of providing the full |
84 | * scancode to the application. As this is a hardware limit, we can't do | 84 | * scancode to the application. As this is a hardware limit, we can't do |
85 | * anything with it. Yet, as the same keycode table can be used with other | 85 | * anything with it. Yet, as the same keycode table can be used with other |
86 | * devices, a mask is provided to allow its usage. Drivers should generally | 86 | * devices, a mask is provided to allow its usage. Drivers should generally |
87 | * leave this field in blank | 87 | * leave this field in blank |
88 | * @users: number of current users of the device | ||
88 | * @priv: driver-specific data | 89 | * @priv: driver-specific data |
89 | * @keylock: protects the remaining members of the struct | 90 | * @keylock: protects the remaining members of the struct |
90 | * @keypressed: whether a key is currently pressed | 91 | * @keypressed: whether a key is currently pressed |
@@ -139,8 +140,8 @@ struct rc_dev { | |||
139 | u64 enabled_wakeup_protocols; | 140 | u64 enabled_wakeup_protocols; |
140 | struct rc_scancode_filter scancode_filter; | 141 | struct rc_scancode_filter scancode_filter; |
141 | struct rc_scancode_filter scancode_wakeup_filter; | 142 | struct rc_scancode_filter scancode_wakeup_filter; |
143 | u32 scancode_mask; | ||
142 | u32 users; | 144 | u32 users; |
143 | u32 scanmask; | ||
144 | void *priv; | 145 | void *priv; |
145 | spinlock_t keylock; | 146 | spinlock_t keylock; |
146 | bool keypressed; | 147 | bool keypressed; |