regulator: ltc3589: Fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 11:19:12 +0000 (13:19 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 10 Aug 2023 14:44:44 +0000 (15:44 +0100)
commitfddc9bb6e277b99b0410410794d156e963aa8f0b
tree5d66d91c18ed88d7cb7e98bbbdc36b1f017cd9d8
parent55975401fdf86ffe4736a557ae9d6f3d81ee5ba6
regulator: ltc3589: Fix Wvoid-pointer-to-enum-cast warning

'variant' is an enum, thus cast of pointer on 64-bit compile test with
W=1 causes:

  ltc3589.c:394:22: error: cast to smaller integer type 'enum ltc3589_variant' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230810111914.204847-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3589.c