Skip to contentSkip to conversation

iio: adc: men_z188_adc: Add terminating entry for men_z188_ids

PATCH Applied Axel Lin 2 participants 2 messages Nov 10, 2014 – Nov 15, 2014 IIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 iio: adc: men_z188_adc: Add terminating entry for men_z188_ids

The mcb_device_id table is supposed to be zero-terminated.

---
 drivers/iio/adc/men_z188_adc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/men_z188_adc.c +1 -0
index b58d630..d095efe 100644
@@ -152,6 +152,7 @@ static void men_z188_remove(struct mcb_device *dev)
 
 static const struct mcb_device_id men_z188_ids[] = {
 	{ .device = 0xbc },
+	{ }
 };
 MODULE_DEVICE_TABLE(mcb, men_z188_ids);
 
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Axel Lin

The mcb_device_id table is supposed to be zero-terminated.

Applied to the fixes-togreg branch of iio.git and marked for stable.

Quoted 17 lines
---
 drivers/iio/adc/men_z188_adc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/men_z188_adc.c +1 -0
index b58d630..d095efe 100644
@@ -152,6 +152,7 @@ static void men_z188_remove(struct mcb_device *dev)
 
 static const struct mcb_device_id men_z188_ids[] = {
 	{ .device = 0xbc },
+	{ }
 };
 MODULE_DEVICE_TABLE(mcb, men_z188_ids);