]> Git Repo - linux.git/commit - drivers/mfd/stmpe-i2c.c
mfd: stmpe: Fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <[email protected]>
Thu, 10 Aug 2023 09:58:41 +0000 (11:58 +0200)
committerLee Jones <[email protected]>
Tue, 22 Aug 2023 07:07:51 +0000 (08:07 +0100)
commit4db65f45e0ac1d361f351dbeda4c5660f3a4ea38
tree55cbd24d63abbcb888682d19940116ec4febcc1e
parent59cf381f1260ba1ae7d70f9e67c6530a5baf79b8
mfd: stmpe: Fix Wvoid-pointer-to-enum-cast warning

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

stmpe-i2c.c:90:13: error: cast to smaller integer type 'enum stmpe_partnum' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
drivers/mfd/stmpe-i2c.c
This page took 0.049305 seconds and 4 git commands to generate.