Skip to content

Commit

Permalink
Add GPIO names
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsir911 committed Mar 9, 2024
1 parent b5bc4de commit 06c3826
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gpio-ch341.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ static int ch341_gpio_probe(struct platform_device *pdev)
gpio->set_multiple = ch341_gpio_set_multiple;
gpio->base = -1;
gpio->ngpio = CH341_GPIO_NUM_PINS;
gpio->names = (char const * const []){
"D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7",
// names are from "parallel" mode, seems to be what datasheets us
"ERR#", "PEMP", "INT#", "SLCT", "RST#", "WAIT#", "DS#", "AS#",
// No WR#?
};
gpio->can_sleep = true;

girq = &gpio->irq;
Expand Down

0 comments on commit 06c3826

Please sign in to comment.