mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
ioexpander/gpio: Remove the hardcode 100 limitation
it's very easy to have more than 100 GPIOs on the modern SoC Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -524,11 +524,10 @@ static int gpio_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
int gpio_pin_register(FAR struct gpio_dev_s *dev, int minor)
|
||||
{
|
||||
FAR const char *fmt;
|
||||
char devname[16];
|
||||
char devname[32];
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(dev != NULL && dev->gp_ops != NULL &&
|
||||
(unsigned int)minor < 100);
|
||||
DEBUGASSERT(dev != NULL && dev->gp_ops != NULL);
|
||||
|
||||
switch (dev->gp_pintype)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user