diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-11-12 13:02:40 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 11:16:38 +0100 |
commit | 2eb258327722de3ed4d84ce1b9add2bad21a0ec4 (patch) | |
tree | d2f5e21d74e8b3062fc847a3af38221f1362d281 /include/media/ir-kbd-i2c.h | |
parent | [media] rc-core: convert winbond-cir (diff) | |
download | linux-2eb258327722de3ed4d84ce1b9add2bad21a0ec4.tar.xz linux-2eb258327722de3ed4d84ce1b9add2bad21a0ec4.zip |
[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 <mchehab@redhat.com>
Diffstat (limited to 'include/media/ir-kbd-i2c.h')
-rw-r--r-- | include/media/ir-kbd-i2c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/ir-kbd-i2c.h b/include/media/ir-kbd-i2c.h index 4ee9b42cbf72..aca015e04f17 100644 --- a/include/media/ir-kbd-i2c.h +++ b/include/media/ir-kbd-i2c.h @@ -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 |