summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-05-02 07:51:27 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-05-02 07:51:27 -0300
commit6fa830d31ee7880f2ca969e559c57fc69b5ebfd1 (patch)
tree00b2ea09ab6fd93eff027df0065d019acf250cbb /linux/drivers/media/common
parent7004e666bc83e2d18605d5342afcfea363dc0532 (diff)
downloadmediapointer-dvb-s2-6fa830d31ee7880f2ca969e559c57fc69b5ebfd1.tar.gz
mediapointer-dvb-s2-6fa830d31ee7880f2ca969e559c57fc69b5ebfd1.tar.bz2
v4l2-i2c-drv*.h: fix warnings caused by I2C API change
From: Mauro Carvalho Chehab <mchehab@infradead.org> The I2C changes at probe method did this: In file included from /home/v4l/master/v4l/cx25840-core.c:42: /home/v4l/master/v4l/../linux/include/media/v4l2-i2c-drv-legacy.h: In function 'v4l2_i2c_drv_init': /home/v4l/master/v4l/../linux/include/media/v4l2-i2c-drv-legacy.h:201: warning: assignment from incompatible pointer type /home/v4l/master/v4l/../linux/include/media/v4l2-i2c-drv.h: In function 'v4l2_i2c_drv_init': /home/v4l/master/v4l/../linux/include/media/v4l2-i2c-drv.h:57: warning: assignment from incompatible pointer type This patches creates a pseudo-function, at include/media/v4l2-i2c-drv-legacy.h and on include/media/v4l2-i2c-drv.h, that makes the proper translation: static int compat_legacy_probe(struct i2c_client *client) { return v4l2_i2c_data.probe(client, NULL); } Hopefully, this will fix the issue of making the code backward compatible without much changes. Notice: The fix weren't tested on hardware. I'm currently out of town, without hardware here. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/common')
0 files changed, 0 insertions, 0 deletions