Skip to contentSkip to conversation

gpio-syscon: fix excess struct member build warning

PATCH Applied Dhruva Gole 2 participants 2 messages Sep 2, 2024 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio-syscon: fix excess struct member build warning

Fix the build warning with W=1 flag,
"Excess struct member 'compatible' description in 'syscon_gpio_data' " by removing the documentation for the non existent member.

---
 drivers/gpio/gpio-syscon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/gpio-syscon.c +0 -1
index 3a90a3a1caea..5ab394ec81e6 100644
@@ -23,7 +23,6 @@
 
 /**
  * struct syscon_gpio_data - Configuration for the device.
- * @compatible:		SYSCON driver compatible string.
  * @flags:		Set of GPIO_SYSCON_FEAT_ flags:
  *			GPIO_SYSCON_FEAT_IN:	GPIOs supports input,
  *			GPIO_SYSCON_FEAT_OUT:	GPIOs supports output,

---
base-commit: ecc768a84f0b8e631986f9ade3118fa37852fef0
change-id: 20240902-b4-gpio-fix-1924622fedeb

Best regards,

Signature · 1 line
Dhruva Gole <[email protected]>
#1 lore raw

From: Bartosz Golaszewski <[email protected]>

Quoted 5 lines · Dhruva Gole

Fix the build warning with W=1 flag,
"Excess struct member 'compatible' description in 'syscon_gpio_data' " by removing the documentation for the non existent member.

Applied, thanks!

[1/1] gpio-syscon: fix excess struct member build warning

      commit: 3cbf09bfb6162a90bda5e1228d0c46ad3e4c0d6c

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>