mirror-linux/drivers/gpu/drm/tiny
Justin Stitt 24883eb269 drm/repaper: fix -Wvoid-pointer-to-enum-cast warning
When building with clang 18 I see the following warning:
|       drivers/gpu/drm/tiny/repaper.c:952:11: warning: cast to smaller integer
|       type 'enum repaper_model' from 'const void *' [-Wvoid-pointer-to-enum-cast]
|         952 |                 model = (enum repaper_model)match;
|

This is due to the fact that `match` is a void* while `enum repaper_model`
has the size of an int.

Add uintptr_t cast to silence clang warning while also keeping enum cast
for readability and consistency with other `model` assignment just a
few lines below:
|       model = (enum repaper_model)spi_id->driver_data;

Link: https://github.com/ClangBuiltLinux/linux/issues/1910
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230816-void-drivers-gpu-drm-tiny-repaper-v1-1-9d8d10f0d52f@google.com
2023-08-25 13:13:20 +02:00
..
Kconfig drm/ofdrm: Depend on CONFIG_MMU 2022-11-03 10:17:53 +01:00
Makefile drm/ofdrm: Add ofdrm for Open Firmware framebuffers 2022-10-14 09:49:47 +02:00
arcpgu.c drm/arcpgu: Use GEM DMA fbdev emulation 2023-03-14 17:07:49 +01:00
bochs.c drm/fbdev-generic: Remove unused prefer_shadow_fbdev flag 2023-03-22 13:32:47 +01:00
cirrus.c drm/cirrus: Use VGA macro constants to unblank 2023-03-13 10:37:09 +01:00
gm12u320.c drm: gm12u320: Remove #ifdef guards for PM related functions 2022-12-12 13:07:03 +00:00
hx8357d.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9163.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9225.c drm/mipi-dbi: Lock SPI bus before setting D/C GPIO 2023-08-02 13:18:07 +02:00
ili9341.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9486.c drm/mipi-dbi: Lock SPI bus before setting D/C GPIO 2023-08-02 13:18:07 +02:00
mi0283qt.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ofdrm.c drm/tiny: Convert to platform remove callback returning void 2023-06-08 09:04:12 -07:00
panel-mipi-dbi.c drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO 2023-08-02 13:18:34 +02:00
repaper.c drm/repaper: fix -Wvoid-pointer-to-enum-cast warning 2023-08-25 13:13:20 +02:00
simpledrm.c drm/tiny: Convert to platform remove callback returning void 2023-06-08 09:04:12 -07:00
st7586.c drm/mipi-dbi: Move drm_dev_{enter, exit}() out from fb_dirty functions 2022-12-05 14:21:18 +01:00
st7735r.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00