Skip to contentSkip to conversation

platform: cznic: turris-omnia-mcu: Rename variable holding GPIO line names

PATCH Applied Marek Behún 2 participants 2 messages Nov 11, 2024 – Nov 12, 2024 Arm/cz.nic turris support

lore
Share & tools
lore

Marek Behún

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/platform/cznic/turris-omnia-mcu-gpio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/cznic/turris-omnia-mcu-gpio.c +2 -2
index 88e208d45882..5f35f7c5d5d7 100644
@@ -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";
Signature · 1 line
2.45.2
#1 lore raw
This patch was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This patch was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 9 lines · On Mon, 11 Nov 2024 13:19:45 +0100 you wrote:

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.

[...]

Here is the summary with links:
- platform: cznic: turris-omnia-mcu: Rename variable holding GPIO line names

    https://git.kernel.org/soc/soc/c/f335e0157717

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html