mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[media] ir-kbd-i2c: add rc_dev as a parameter to the driver
There are several fields on rc_dev that drivers can benefit. Allow drivers to pass it as a parameter to the driver. For now, the rc_dev parameter is optional. If drivers don't pass it, create them internally. However, the best is to create rc_dev inside the drivers, in order to fill other fields, like open(), close(), driver_name, etc. So, a latter patch making it mandatory and changing the caller drivers is welcome. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
5b2e303f6d
commit
2eb2583277
2 changed files with 35 additions and 12 deletions
|
|
@ -46,5 +46,7 @@ struct IR_i2c_init_data {
|
|||
*/
|
||||
int (*get_key)(struct IR_i2c*, u32*, u32*);
|
||||
enum ir_kbd_get_key_fn internal_get_key_func;
|
||||
|
||||
struct rc_dev *rc_dev;
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue