Skip to content

Commit aeaa246

Browse files
committed
drm: panel: Fix compilation warnings
See: #4812 Signed-off-by: Phil Elwell <[email protected]>
1 parent eb877a2 commit aeaa246

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/panel/panel-ilitek-ili9806e.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ static int ili9806_probe(struct spi_device *spi)
421421
if (!id)
422422
return -ENODEV;
423423

424-
ctx->bus_format = (u32)id->data;
424+
ctx->bus_format = (u32)(uintptr_t)id->data;
425425

426426
spi_set_drvdata(spi, ctx);
427427
ctx->spi = spi;

drivers/gpu/drm/panel/panel-tdo-y17p.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static int tdo_y17p_probe(struct spi_device *spi)
218218
if (!id)
219219
return -ENODEV;
220220

221-
ctx->bus_format = (u32)id->data;
221+
ctx->bus_format = (u32)(uintptr_t)id->data;
222222

223223
spi_set_drvdata(spi, ctx);
224224
ctx->spi = spi;

0 commit comments

Comments
 (0)