]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: twl: fix use of integer as pointer
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 7 Jun 2016 17:40:01 +0000 (18:40 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 8 Jun 2016 17:18:24 +0000 (18:18 +0100)
commitccbc78b7e86f5708eb5aa26c6e18d873f72b8341
treeee88a6e560bf4a0d7aa1155ae6d81fda3b214f76
parenteafb69e30fd2c5eb541ab8464cb7c24186e23039
regulator: twl: fix use of integer as pointer

The TWL6030_FIXED_LDO() macro passes the TWL_FIXED_LDO()
macro an 0x0 instead of a NULL. Changing this to a NULL
fixes the following warnings:

drivers/regulator/twl-regulator.c:1068:1: warning: Using plain integer as NULL pointer
drivers/regulator/twl-regulator.c:1069:1: warning: Using plain integer as NULL pointer
drivers/regulator/twl-regulator.c:1070:1: warning: Using plain integer as NULL pointer
drivers/regulator/twl-regulator.c:1071:1: warning: Using plain integer as NULL pointer
drivers/regulator/twl-regulator.c:1072:1: warning: Using plain integer as NULL pointer
drivers/regulator/twl-regulator.c:1073:1: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/twl-regulator.c