]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform: cznic: turris-omnia-mcu: Rename variable holding GPIO line names
authorMarek Behún <kabel@kernel.org>
Mon, 11 Nov 2024 12:19:45 +0000 (13:19 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 12 Nov 2024 15:05:16 +0000 (16:05 +0100)
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 <kabel@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/platform/cznic/turris-omnia-mcu-gpio.c

index 88e208d458820a9aeef14a1ae9b0354417d694f2..5f35f7c5d5d7ed041e9e3153ebfaab52ed5dce5f 100644 (file)
@@ -28,7 +28,7 @@
 #define OMNIA_CMD_INT_ARG_LEN          8
 #define FRONT_BUTTON_RELEASE_DELAY_MS  50
 
-static const char * const omnia_mcu_gpio_templates[64] = {
+static const char * const omnia_mcu_gpio_names[64] = {
        /* GPIOs with value read from the 16-bit wide status */
        [4]  = "MiniPCIe0 Card Detect",
        [5]  = "MiniPCIe0 mSATA Indicator",
@@ -1018,7 +1018,7 @@ int omnia_mcu_register_gpiochip(struct omnia_mcu *mcu)
        mcu->gc.set_multiple = omnia_gpio_set_multiple;
        mcu->gc.init_valid_mask = omnia_gpio_init_valid_mask;
        mcu->gc.can_sleep = true;
-       mcu->gc.names = omnia_mcu_gpio_templates;
+       mcu->gc.names = omnia_mcu_gpio_names;
        mcu->gc.base = -1;
        mcu->gc.ngpio = ARRAY_SIZE(omnia_gpios);
        mcu->gc.label = "Turris Omnia MCU GPIOs";