mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user