drm: panel: Fix compilation warnings
authorPhil Elwell <phil@raspberrypi.com>
Sat, 5 Feb 2022 18:41:07 +0000 (18:41 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:42 +0000 (16:04 +0000)
See: https://github.com/raspberrypi/linux/pull/4812

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
drivers/gpu/drm/panel/panel-tdo-y17p.c

index 90300f0..89058f0 100644 (file)
@@ -421,7 +421,7 @@ static int ili9806_probe(struct spi_device *spi)
        if (!id)
                return -ENODEV;
 
-       ctx->bus_format = (u32)id->data;
+       ctx->bus_format = (u32)(uintptr_t)id->data;
 
        spi_set_drvdata(spi, ctx);
        ctx->spi = spi;
index 8edabb1..074bf0d 100644 (file)
@@ -218,7 +218,7 @@ static int tdo_y17p_probe(struct spi_device *spi)
        if (!id)
                return -ENODEV;
 
-       ctx->bus_format = (u32)id->data;
+       ctx->bus_format = (u32)(uintptr_t)id->data;
 
        spi_set_drvdata(spi, ctx);
        ctx->spi = spi;