Skip to content

Commit f335e01

Browse files
elkabloarndb
authored andcommitted
platform: cznic: turris-omnia-mcu: Rename variable holding GPIO line names
Rename the `omnia_mcu_gpio_templates` variable to `omnia_mcu_gpio_names`. The array contained templates for the names during the development of the driver, but the template prefix `gpio%u.` was dropped before the driver was merged, since this functionality was broken in gpiolib. Signed-off-by: Marek Behún <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 372eb09 commit f335e01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/cznic/turris-omnia-mcu-gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define OMNIA_CMD_INT_ARG_LEN 8
2929
#define FRONT_BUTTON_RELEASE_DELAY_MS 50
3030

31-
static const char * const omnia_mcu_gpio_templates[64] = {
31+
static const char * const omnia_mcu_gpio_names[64] = {
3232
/* GPIOs with value read from the 16-bit wide status */
3333
[4] = "MiniPCIe0 Card Detect",
3434
[5] = "MiniPCIe0 mSATA Indicator",
@@ -1018,7 +1018,7 @@ int omnia_mcu_register_gpiochip(struct omnia_mcu *mcu)
10181018
mcu->gc.set_multiple = omnia_gpio_set_multiple;
10191019
mcu->gc.init_valid_mask = omnia_gpio_init_valid_mask;
10201020
mcu->gc.can_sleep = true;
1021-
mcu->gc.names = omnia_mcu_gpio_templates;
1021+
mcu->gc.names = omnia_mcu_gpio_names;
10221022
mcu->gc.base = -1;
10231023
mcu->gc.ngpio = ARRAY_SIZE(omnia_gpios);
10241024
mcu->gc.label = "Turris Omnia MCU GPIOs";

0 commit comments

Comments
 (0)