mfd: abx500-core: Improve two size determinations in abx500_register_ops()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 8 Mar 2018 11:46:47 +0000 (12:46 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commit5053e3a3383ef3952496146c75e77245e51e9040
treeafc1ff2f53ec169d0262b24d3e0d8ddda6d4bab2
parenta5e20bfa250dc6989d4939171283a17a6d25346d
mfd: abx500-core: Improve two size determinations in abx500_register_ops()

Replace the specification of two data structures by pointer dereferences
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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/abx500-core.c