spi: sc18is602: fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 09:12:45 +0000 (11:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2023 12:11:13 +0000 (13:11 +0100)
commit0f9440a646fd1245a9206f171a4de25e6b092d42
tree82c4eae02f966e61b8083e58d2d17452ae0d149a
parentddaec4e44d4e2a556b51159d48788a85ff67179d
spi: sc18is602: fix Wvoid-pointer-to-enum-cast warning

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

  spi-sc18is602.c:269:12: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

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