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)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitfedefe614414f9da09474363a0b1b3a80f470527
tree54610e3c5e438e2cafcd755ffbf60112508fb3f9
parenta65f123c3d6d740bbfe21a75742973159675821e
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: 494edd266b945f36 ("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>
(cherry picked from commit de226ebda96cafa981b9c0fef56888931668b671)
drivers/regulator/bd718x7-regulator.c