mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
[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>
This commit is contained in:
parent
c5540fbb9d
commit
9d2f1d3cde
@ -478,7 +478,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
|||||||
dev->priv = core;
|
dev->priv = core;
|
||||||
dev->open = cx88_ir_open;
|
dev->open = cx88_ir_open;
|
||||||
dev->close = cx88_ir_close;
|
dev->close = cx88_ir_close;
|
||||||
dev->scanmask = hardware_mask;
|
dev->scancode_mask = hardware_mask;
|
||||||
|
|
||||||
if (ir->sampling) {
|
if (ir->sampling) {
|
||||||
dev->driver_type = RC_DRIVER_IR_RAW;
|
dev->driver_type = RC_DRIVER_IR_RAW;
|
||||||
|
@ -234,7 +234,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!budget_ci->ir.full_rc5)
|
if (!budget_ci->ir.full_rc5)
|
||||||
dev->scanmask = 0xff;
|
dev->scancode_mask = 0xff;
|
||||||
|
|
||||||
error = rc_register_device(dev);
|
error = rc_register_device(dev);
|
||||||
if (error) {
|
if (error) {
|
||||||
|
@ -285,8 +285,8 @@ static unsigned int ir_establish_scancode(struct rc_dev *dev,
|
|||||||
* IR tables from other remotes. So, we support specifying a mask to
|
* IR tables from other remotes. So, we support specifying a mask to
|
||||||
* indicate the valid bits of the scancodes.
|
* indicate the valid bits of the scancodes.
|
||||||
*/
|
*/
|
||||||
if (dev->scanmask)
|
if (dev->scancode_mask)
|
||||||
scancode &= dev->scanmask;
|
scancode &= dev->scancode_mask;
|
||||||
|
|
||||||
/* First check if we already have a mapping for this ir command */
|
/* First check if we already have a mapping for this ir command */
|
||||||
for (i = 0; i < rc_map->len; i++) {
|
for (i = 0; i < rc_map->len; i++) {
|
||||||
|
@ -91,7 +91,7 @@ int cx231xx_ir_init(struct cx231xx *dev)
|
|||||||
dev->init_data.get_key = get_key_isdbt;
|
dev->init_data.get_key = get_key_isdbt;
|
||||||
dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name;
|
dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name;
|
||||||
/* The i2c micro-controller only outputs the cmd part of NEC protocol */
|
/* The i2c micro-controller only outputs the cmd part of NEC protocol */
|
||||||
dev->init_data.rc_dev->scanmask = 0xff;
|
dev->init_data.rc_dev->scancode_mask = 0xff;
|
||||||
dev->init_data.rc_dev->driver_name = "cx231xx";
|
dev->init_data.rc_dev->driver_name = "cx231xx";
|
||||||
dev->init_data.type = RC_BIT_NEC;
|
dev->init_data.type = RC_BIT_NEC;
|
||||||
info.addr = 0x30;
|
info.addr = 0x30;
|
||||||
|
@ -443,7 +443,7 @@ int tm6000_ir_init(struct tm6000_core *dev)
|
|||||||
/* input setup */
|
/* input setup */
|
||||||
rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC;
|
rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC;
|
||||||
/* Neded, in order to support NEC remotes with 24 or 32 bits */
|
/* Neded, in order to support NEC remotes with 24 or 32 bits */
|
||||||
rc->scanmask = 0xffff;
|
rc->scancode_mask = 0xffff;
|
||||||
rc->priv = ir;
|
rc->priv = ir;
|
||||||
rc->change_protocol = tm6000_ir_change_protocol;
|
rc->change_protocol = tm6000_ir_change_protocol;
|
||||||
if (dev->int_in.endp) {
|
if (dev->int_in.endp) {
|
||||||
|
@ -80,11 +80,12 @@ enum rc_filter_type {
|
|||||||
* @enabled_wakeup_protocols: bitmask with the enabled RC_BIT_* wakeup protocols
|
* @enabled_wakeup_protocols: bitmask with the enabled RC_BIT_* wakeup protocols
|
||||||
* @scancode_filter: scancode filter
|
* @scancode_filter: scancode filter
|
||||||
* @scancode_wakeup_filter: scancode wakeup filters
|
* @scancode_wakeup_filter: scancode wakeup filters
|
||||||
* @scanmask: some hardware decoders are not capable of providing the full
|
* @scancode_mask: some hardware decoders are not capable of providing the full
|
||||||
* scancode to the application. As this is a hardware limit, we can't do
|
* scancode to the application. As this is a hardware limit, we can't do
|
||||||
* anything with it. Yet, as the same keycode table can be used with other
|
* anything with it. Yet, as the same keycode table can be used with other
|
||||||
* devices, a mask is provided to allow its usage. Drivers should generally
|
* devices, a mask is provided to allow its usage. Drivers should generally
|
||||||
* leave this field in blank
|
* leave this field in blank
|
||||||
|
* @users: number of current users of the device
|
||||||
* @priv: driver-specific data
|
* @priv: driver-specific data
|
||||||
* @keylock: protects the remaining members of the struct
|
* @keylock: protects the remaining members of the struct
|
||||||
* @keypressed: whether a key is currently pressed
|
* @keypressed: whether a key is currently pressed
|
||||||
@ -139,8 +140,8 @@ struct rc_dev {
|
|||||||
u64 enabled_wakeup_protocols;
|
u64 enabled_wakeup_protocols;
|
||||||
struct rc_scancode_filter scancode_filter;
|
struct rc_scancode_filter scancode_filter;
|
||||||
struct rc_scancode_filter scancode_wakeup_filter;
|
struct rc_scancode_filter scancode_wakeup_filter;
|
||||||
|
u32 scancode_mask;
|
||||||
u32 users;
|
u32 users;
|
||||||
u32 scanmask;
|
|
||||||
void *priv;
|
void *priv;
|
||||||
spinlock_t keylock;
|
spinlock_t keylock;
|
||||||
bool keypressed;
|
bool keypressed;
|
||||||
|
Loading…
Reference in New Issue
Block a user