1 From f6df23eb130f2407565db92e60b66a56b9b6fdea Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 27 Oct 2020 12:10:04 +0000
4 Subject: [PATCH] gpio-fsm: Fix a build warning
6 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
8 drivers/gpio/gpio-fsm.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
11 --- a/drivers/gpio/gpio-fsm.c
12 +++ b/drivers/gpio/gpio-fsm.c
13 @@ -956,7 +956,8 @@ static int gpio_fsm_probe(struct platfor
14 // add reserved words to the symbol table
15 for (i = 0; i < ARRAY_SIZE(reserved_symbols); i++) {
16 if (reserved_symbols[i])
17 - add_symbol(&gf->symtab, reserved_symbols[i], (void *)i);
18 + add_symbol(&gf->symtab, reserved_symbols[i],
19 + (void *)(uintptr_t)i);