Skip to content

Commit df5300e

Browse files
committed
Add GPIO names
1 parent b5bc4de commit df5300e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gpio-ch341.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ static int ch341_gpio_probe(struct platform_device *pdev)
378378
gpio->set_multiple = ch341_gpio_set_multiple;
379379
gpio->base = -1;
380380
gpio->ngpio = CH341_GPIO_NUM_PINS;
381+
gpio->names = (char const * const []){
382+
"D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7",
383+
// names are from "print port" mode, seems to be what datasheets us
384+
"ERR#", "PEMP", "ACK#", "SLCT", "INI#", "BUSY", "AFD#", "SIN#",
385+
};
381386
gpio->can_sleep = true;
382387

383388
girq = &gpio->irq;

0 commit comments

Comments
 (0)