bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0701-drm-panel-Fix-compilation-warnings.patch
1 From 5ab880f474a2263625033aee6d9236f6c10af2b4 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Sat, 5 Feb 2022 18:41:07 +0000
4 Subject: [PATCH] drm: panel: Fix compilation warnings
5
6 See: https://github.com/raspberrypi/linux/pull/4812
7
8 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
9 ---
10 drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 2 +-
11 drivers/gpu/drm/panel/panel-tdo-y17p.c | 2 +-
12 2 files changed, 2 insertions(+), 2 deletions(-)
13
14 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
15 +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
16 @@ -421,7 +421,7 @@ static int ili9806_probe(struct spi_devi
17 if (!id)
18 return -ENODEV;
19
20 - ctx->bus_format = (u32)id->data;
21 + ctx->bus_format = (u32)(uintptr_t)id->data;
22
23 spi_set_drvdata(spi, ctx);
24 ctx->spi = spi;
25 --- a/drivers/gpu/drm/panel/panel-tdo-y17p.c
26 +++ b/drivers/gpu/drm/panel/panel-tdo-y17p.c
27 @@ -218,7 +218,7 @@ static int tdo_y17p_probe(struct spi_dev
28 if (!id)
29 return -ENODEV;
30
31 - ctx->bus_format = (u32)id->data;
32 + ctx->bus_format = (u32)(uintptr_t)id->data;
33
34 spi_set_drvdata(spi, ctx);
35 ctx->spi = spi;