From 06c382689b3e07e8aa51f7c98f72ecf8e08f3a6b Mon Sep 17 00:00:00 2001 From: Marco Sirabella Date: Sat, 9 Mar 2024 08:39:01 -0800 Subject: [PATCH] Add GPIO names --- gpio-ch341.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpio-ch341.c b/gpio-ch341.c index dd3f3ed..a81db83 100644 --- a/gpio-ch341.c +++ b/gpio-ch341.c @@ -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;