Skip to contentSkip to conversation

staging: iio: Solved warning of undefined string.

PATCH In review Fabio Joaquin 2 participants 2 messages Sep 7, 2024 – Sep 8, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: Solved warning of undefined string.

The remove of the line of the referenced string was the forced solution of this source of warning. The string wasn't defined in the bindings directory, so this was necessary.

---
 drivers/staging/iio/accel/adis16203.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/iio/accel/adis16203.c +0 -1
index c0e4c9266b5f4..0255ed6dc300d 100644
@@ -293,7 +293,6 @@ static int adis16203_probe(struct spi_device *spi)
 }
 
 static const struct of_device_id adis16203_of_match[] = {
-	{ .compatible = "adi,adis16203" },
 	{ },
 };
 
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 1 line · Fabio Joaquin

The remove of the line of the referenced string was the forced solution of this source of warning.

What warning exactly?

And please wrap your changelog at 72 columns like your editor asked you to.

Quoted 1 line

The string wasn't defined in the bindings directory, so this was necessary.

I can't really understand this sentance, sorry.

Quoted 11 lines
---
 drivers/staging/iio/accel/adis16203.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/iio/accel/adis16203.c +0 -0
index c0e4c9266b5f4..0255ed6dc300d 100644

drivers/staging/iio/accel/adis16203.c static int adis16203_probe(struct spi_device *spi) · line 296

Quoted 4 lines
drivers/staging/iio/accel/adis16203.c +0 -1
@@ -293,7 +293,6 @@ static int adis16203_probe(struct spi_device *spi)
 }
 
 static const struct of_device_id adis16203_of_match[] = {
-	{ .compatible = "adi,adis16203" },

So now this driver doesn't bind to anything?

confused,

greg k-h