gpio: stmpe: Improve a size determination in stmpe_gpio_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 12 Jan 2018 18:36:29 +0000 (19:36 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 17 Jan 2018 06:44:15 +0000 (07:44 +0100)
commit64fec0bcea0faa148151050bbb2c15da6a1423e0
treef654e87b4cdfa79eab43c9951879674a47c0117e
parent0d83a5eb65095b84b5b000684407fc171d7872e4
gpio: stmpe: Improve a size determination in stmpe_gpio_probe()

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: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-stmpe.c