summaryrefslogtreecommitdiff
path: root/drivers/iio/dac/max517.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/dac/max517.c')
-rw-r--r--drivers/iio/dac/max517.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/iio/dac/max517.c b/drivers/iio/dac/max517.c
index d334c67821ad..d2ddc72e0e50 100644
--- a/drivers/iio/dac/max517.c
+++ b/drivers/iio/dac/max517.c
@@ -187,11 +187,11 @@ static int max517_probe(struct i2c_client *client)
}
static const struct i2c_device_id max517_id[] = {
- { "max517", ID_MAX517 },
- { "max518", ID_MAX518 },
- { "max519", ID_MAX519 },
- { "max520", ID_MAX520 },
- { "max521", ID_MAX521 },
+ { .name = "max517", .driver_data = ID_MAX517 },
+ { .name = "max518", .driver_data = ID_MAX518 },
+ { .name = "max519", .driver_data = ID_MAX519 },
+ { .name = "max520", .driver_data = ID_MAX520 },
+ { .name = "max521", .driver_data = ID_MAX521 },
{ }
};
MODULE_DEVICE_TABLE(i2c, max517_id);