drivers/rpmsg_port_spi/slave: update type of pin number to pinset_t

Correct the gpio pin number type

Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
liaoao
2025-05-13 20:09:10 +08:00
committed by Xiang Xiao
parent 9f4708f643
commit ba81948741
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -628,7 +628,11 @@ rpmsg_port_spi_init_gpio(FAR struct ioexpander_dev_s *ioe,
return ret;
}
#if CONFIG_IOEXPANDER_NPINS <= 64
ptr = IOEP_ATTACH(ioe, 1 << pin, callback, args);
#else
ptr = IOEP_ATTACH(ioe, pin, callback, args);
#endif
if (ptr == NULL)
{
rpmsgerr("gpio attach error: %d\n", ret);
+4
View File
@@ -673,7 +673,11 @@ rpmsg_port_spi_init_gpio(FAR struct ioexpander_dev_s *ioe,
return ret;
}
#if CONFIG_IOEXPANDER_NPINS <= 64
ptr = IOEP_ATTACH(ioe, 1 << pin, callback, args);
#else
ptr = IOEP_ATTACH(ioe, pin, callback, args);
#endif
if (ptr == NULL)
{
rpmsgerr("gpio attach error: %d\n", ret);