gpio: mxs: fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 09:59:49 +0000 (11:59 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 11 Aug 2023 14:21:46 +0000 (16:21 +0200)
commitb7df0f340b64c543bb84c42698347f08b6e18fe2
treee89c64ea40ba6e7d704f351c9902c037b7275ff6
parenta0e3b8e2acd0f6e30fe68dd74116596bcf59aa63
gpio: mxs: fix Wvoid-pointer-to-enum-cast warning

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

  gpio-mxs.c:274:16: error: cast to smaller integer type 'enum mxs_gpio_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mxs.c