[media] i2c: Improve a size determination
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 2 Sep 2017 14:09:35 +0000 (11:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 20:15:39 +0000 (17:15 -0300)
commit19fab6fe67d815eb90095e21e3273a1fbe0c8fd9
treef38bd06036109d8f9d8dae7951c1f40c31460c50
parent0fd58435890aa9f2d44baaa2f328f7f8f512f4dc
[media] i2c: Improve a size determination

Replace the specification of a data structure by pointer dereferences
as the parameter for the operator "sizeof" to make size
determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

[mchehab@s-opensource.com: merged similar patches]
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/ov2640.c
drivers/media/i2c/soc_camera/ov9640.c
drivers/media/i2c/soc_camera/ov9740.c