Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

David Härdeman and committed by
Mauro Carvalho Chehab
9d2f1d3c c5540fbb

+9 -8
+1 -1
drivers/media/pci/cx88/cx88-input.c
··· 478 478 dev->priv = core; 479 479 dev->open = cx88_ir_open; 480 480 dev->close = cx88_ir_close; 481 - dev->scanmask = hardware_mask; 481 + dev->scancode_mask = hardware_mask; 482 482 483 483 if (ir->sampling) { 484 484 dev->driver_type = RC_DRIVER_IR_RAW;
+1 -1
drivers/media/pci/ttpci/budget-ci.c
··· 234 234 break; 235 235 } 236 236 if (!budget_ci->ir.full_rc5) 237 - dev->scanmask = 0xff; 237 + dev->scancode_mask = 0xff; 238 238 239 239 error = rc_register_device(dev); 240 240 if (error) {
+2 -2
drivers/media/rc/rc-main.c
··· 285 285 * IR tables from other remotes. So, we support specifying a mask to 286 286 * indicate the valid bits of the scancodes. 287 287 */ 288 - if (dev->scanmask) 289 - scancode &= dev->scanmask; 288 + if (dev->scancode_mask) 289 + scancode &= dev->scancode_mask; 290 290 291 291 /* First check if we already have a mapping for this ir command */ 292 292 for (i = 0; i < rc_map->len; i++) {
+1 -1
drivers/media/usb/cx231xx/cx231xx-input.c
··· 91 91 dev->init_data.get_key = get_key_isdbt; 92 92 dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; 93 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 95 dev->init_data.rc_dev->driver_name = "cx231xx"; 96 96 dev->init_data.type = RC_BIT_NEC; 97 97 info.addr = 0x30;
+1 -1
drivers/media/usb/tm6000/tm6000-input.c
··· 443 443 /* input setup */ 444 444 rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC; 445 445 /* Neded, in order to support NEC remotes with 24 or 32 bits */ 446 - rc->scanmask = 0xffff; 446 + rc->scancode_mask = 0xffff; 447 447 rc->priv = ir; 448 448 rc->change_protocol = tm6000_ir_change_protocol; 449 449 if (dev->int_in.endp) {
+3 -2
include/media/rc-core.h
··· 80 80 * @enabled_wakeup_protocols: bitmask with the enabled RC_BIT_* wakeup protocols 81 81 * @scancode_filter: scancode filter 82 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 84 * scancode to the application. As this is a hardware limit, we can't do 85 85 * anything with it. Yet, as the same keycode table can be used with other 86 86 * devices, a mask is provided to allow its usage. Drivers should generally 87 87 * leave this field in blank 88 + * @users: number of current users of the device 88 89 * @priv: driver-specific data 89 90 * @keylock: protects the remaining members of the struct 90 91 * @keypressed: whether a key is currently pressed ··· 140 139 u64 enabled_wakeup_protocols; 141 140 struct rc_scancode_filter scancode_filter; 142 141 struct rc_scancode_filter scancode_wakeup_filter; 142 + u32 scancode_mask; 143 143 u32 users; 144 - u32 scanmask; 145 144 void *priv; 146 145 spinlock_t keylock; 147 146 bool keypressed;