aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-12 09:02:40 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 08:16:38 -0200
commit2eb258327722de3ed4d84ce1b9add2bad21a0ec4 (patch)
treed2f5e21d74e8b3062fc847a3af38221f1362d281 /include/media
parent5b2e303f6df1e0b1a903950c5d613a20c8c71a37 (diff)
downloadkernel_samsung_smdk4412-2eb258327722de3ed4d84ce1b9add2bad21a0ec4.tar.gz
kernel_samsung_smdk4412-2eb258327722de3ed4d84ce1b9add2bad21a0ec4.tar.bz2
kernel_samsung_smdk4412-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')
-rw-r--r--include/media/ir-kbd-i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/ir-kbd-i2c.h b/include/media/ir-kbd-i2c.h
index 4ee9b42cbf7..aca015e04f1 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