i2c: Improve size determinations
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 2 Feb 2018 13:50:09 +0000 (14:50 +0100)
committerWolfram Sang <wsa@kernel.org>
Wed, 7 Jun 2023 12:12:11 +0000 (14:12 +0200)
commit06e989578232da33a7fe96b04191b862af8b2cec
tree855e3e2a93b08111e4fbd1ec3ba9679f1dd60b51
parent6b3b21a8542fd2fb6ffc61bc13b9419f0c58ebad
i2c: Improve size determinations

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

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-nomadik.c
drivers/i2c/busses/i2c-sh7760.c