linux/drivers/media/i2c
David Härdeman c003ab1bed [media] rc-core: add separate defines for protocol bitmaps and numbers
The RC_TYPE_* defines are currently used both where a single protocol is
expected and where a bitmap of protocols is expected.

Functions like rc_keydown() and functions which add/remove entries to the
keytable want a single protocol. Future userspace APIs would also
benefit from numeric protocols (rather than bitmap ones). Keytables are
smaller if they can use a small(ish) integer rather than a bitmap.

Other functions or struct members (e.g. allowed_protos,
enabled_protocols, etc) accept multiple protocols and need a bitmap.

Using different types reduces the risk of programmer error. Using a
protocol enum whereever possible also makes for a more future-proof
user-space API as we don't need to worry about a sufficient number of
bits being available (e.g. in structs used for ioctl() calls).

The use of both a number and a corresponding bit is dalso one in e.g.
the input subsystem as well (see all the references to set/clear bit when
changing keytables for example).

This patch separate the different usages in preparation for
upcoming patches.

Where a single protocol is expected, enum rc_type is used; where one or more
protocol(s) are expected, something like u64 is used.

The patch has been rewritten so that the format of the sysfs "protocols"
file is no longer altered (at the loss of some detail). The file itself
should probably be deprecated in the future though.

Signed-off-by: David Härdeman <david@hardeman.nu>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Antti Palosaari <crope@iki.fi>
Cc: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-10-27 11:49:51 -02:00
..
cx25840 [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
m5mols [media] m5mols: Add missing #include <linux/sizes.h> 2012-10-10 08:17:16 -03:00
smiapp [media] smiapp: Provide module identification information through sysfs 2012-09-26 17:43:54 -03:00
soc_camera [media] ov2640: select sensor register bank before applying h/v-flip settings 2012-10-06 09:21:27 -03:00
Kconfig [media] Add v4l2 subdev driver for S5K4ECGX sensor 2012-09-26 17:32:54 -03:00
Makefile [media] Add v4l2 subdev driver for S5K4ECGX sensor 2012-09-26 17:32:54 -03:00
ad9389b.c [media] ad9389b: driver for the Analog Devices AD9389B video encoder 2012-09-13 16:15:36 -03:00
adp1653.c
adv7170.c
adv7175.c
adv7180.c
adv7183.c [media] i2c: adv7183: use module_i2c_driver to simplify the code 2012-10-25 17:08:46 -02:00
adv7183_regs.h
adv7343.c
adv7343_regs.h
adv7393.c
adv7393_regs.h
adv7604.c [media] adv7604: driver for the Analog Devices ADV7604 video decoder 2012-09-13 16:13:47 -03:00
ak881x.c
aptina-pll.c
aptina-pll.h
as3645a.c
bt819.c
bt856.c
bt866.c
btcx-risc.c
btcx-risc.h
cs53l32a.c
cs5345.c
cx2341x.c
ir-kbd-i2c.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ks0127.c [media] ks0127: convert struct i2c_msg initialization to C99 format 2012-09-27 07:38:40 -03:00
ks0127.h
m52790.c
msp3400-driver.c [media] msp3400: convert struct i2c_msg initialization to C99 format 2012-09-27 07:39:31 -03:00
msp3400-driver.h
msp3400-kthreads.c
mt9m032.c [media] mt9m032.c: introduce missing initialization 2012-09-14 11:10:59 -03:00
mt9p031.c [media] media: mt9p031/mt9t001/mt9v032: use V4L2_CID_TEST_PATTERN for test pattern control 2012-10-05 21:49:32 -03:00
mt9t001.c [media] media: mt9p031/mt9t001/mt9v032: use V4L2_CID_TEST_PATTERN for test pattern control 2012-10-05 21:49:32 -03:00
mt9v011.c
mt9v032.c [media] media: mt9p031/mt9t001/mt9v032: use V4L2_CID_TEST_PATTERN for test pattern control 2012-10-05 21:49:32 -03:00
noon010pc30.c
ov7670.c
s5k4ecgx.c [media] Add v4l2 subdev driver for S5K4ECGX sensor 2012-09-26 17:32:54 -03:00
s5k6aa.c [media] s5k6aa: Fix possible NULL pointer dereference 2012-10-02 14:01:30 -03:00
saa711x_regs.h
saa717x.c
saa6588.c
saa7110.c
saa7115.c [media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct 2012-10-01 17:12:51 -03:00
saa7127.c [media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct 2012-10-01 17:12:51 -03:00
saa7185.c
saa7191.c
saa7191.h
smiapp-pll.c
smiapp-pll.h
sr030pc30.c
tcm825x.c
tcm825x.h
tda7432.c
tda9840.c
tea6415c.c [media] drivers/media/i2c/tea6415c.c: removes unnecessary semicolon 2012-09-23 17:04:38 -03:00
tea6415c.h
tea6420.c
tea6420.h
ths7303.c [media] ths7303: enable THS7303 for HD modes 2012-10-05 14:27:47 -03:00
tlv320aic23b.c
tvaudio.c [media] tvaudio: convert struct i2c_msg initialization to C99 format 2012-09-27 07:38:49 -03:00
tveeprom.c
tvp514x.c [media] tvp514x: s_routing should just change routing, not try to detect a signal 2012-10-05 22:10:38 -03:00
tvp514x_regs.h
tvp5150.c [media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct 2012-10-01 17:12:51 -03:00
tvp5150_reg.h
tvp7002.c
tvp7002_reg.h
upd64031a.c
upd64083.c
vp27smpx.c
vpx3220.c
vs6624.c [media] i2c: vs6624: use module_i2c_driver to simplify the code 2012-10-25 17:08:17 -02:00
vs6624_regs.h
wm8739.c
wm8775.c