Fix ioexpander/gpio_lower_half.c:359:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
26d6f04d74
commit
e1b5e87ff3
|
@ -356,7 +356,7 @@ static int gplh_setpintype(FAR struct gpio_dev_s *gpio,
|
|||
}
|
||||
|
||||
IOEXP_SETOPTION(ioe, pin, IOEXPANDER_OPTION_INTCFG,
|
||||
(FAR void *)g_gplh_inttype[pintype]);
|
||||
(FAR void *)(uintptr_t)g_gplh_inttype[pintype]);
|
||||
}
|
||||
|
||||
gpio->gp_pintype = pintype;
|
||||
|
|
Loading…
Reference in New Issue