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:
Xiang Xiao 2022-01-07 10:33:25 +08:00 committed by Xiang Xiao
parent 26d6f04d74
commit e1b5e87ff3
1 changed files with 1 additions and 1 deletions

View File

@ -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;