]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: bd718x7: Remove double indirection for bd718xx_pmic_inits.rdatas
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 28 Oct 2018 16:09:22 +0000 (17:09 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Nov 2018 14:27:39 +0000 (14:27 +0000)
commit7638788ca8aa8d6c14a194f6bf14d1e0dda47538
tree6d8597b04a3072098bca91f0f9846c9f230f0b45
parent5ad722bbdf8cb43fed870653f5d5801792ae601e
regulator: bd718x7: Remove double indirection for bd718xx_pmic_inits.rdatas

With gcc 4.1:

    drivers/regulator/bd718x7-regulator.c: In function ‘bd718xx_probe’:
    drivers/regulator/bd718x7-regulator.c:1020: warning: initialization from incompatible pointer type
    drivers/regulator/bd718x7-regulator.c:1024: warning: initialization from incompatible pointer type

Apparently this old compiler can't handle the obscure double
indirection.

However, there is no need for a double indirection.  Just store a
pointer to the array instead, like other drivers tend to do.

Fixes: 1a6af63875c07caa ("regulator/mfd: Support ROHM BD71847 power management IC")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd718x7-regulator.c