diff mbox series

[v9,2/3] fixes! [max9286]: Don't provide GPIO names

Message ID 20200514140016.1445489-3-kieran.bingham+renesas@ideasonboard.com (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series MAX9286 fixups | expand

Commit Message

Kieran Bingham May 14, 2020, 2 p.m. UTC
The GPIO line names are fairly unhelpful, other than describing
them as out lines only ... but otherwise ...

Having multiple gpio devices with the same names reports conflicts.
so lets just remove them.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
 drivers/media/i2c/max9286.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
index c8ca1245df4b..66201dc4b7f7 100644
--- a/drivers/media/i2c/max9286.c
+++ b/drivers/media/i2c/max9286.c
@@ -1019,11 +1019,6 @@  static int max9286_register_gpio(struct max9286_priv *priv)
 	struct gpio_chip *gpio = &priv->gpio;
 	int ret;
 
-	static const char * const names[] = {
-		"GPIO0OUT",
-		"GPIO1OUT",
-	};
-
 	/* Configure the GPIO */
 	gpio->label = dev_name(dev);
 	gpio->parent = dev;
@@ -1034,7 +1029,6 @@  static int max9286_register_gpio(struct max9286_priv *priv)
 	gpio->set = max9286_gpio_set;
 	gpio->get = max9286_gpio_get;
 	gpio->can_sleep = true;
-	gpio->names = names;
 
 	/* GPIO values default to high */
 	priv->gpio_state = BIT(0) | BIT(1);