Skip to content

Commit a7ee2d0

Browse files
ukleinekjic23
authored andcommitted
iio: dac: max5821: Drop unused i2c driver data
The .driver_data member of the single i2c_device_id array entry is unused in the driver. Drop it and also the then unused definition. While at it, convert the i2c_device_id array to a better readable named initializer. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent abd69c0 commit a7ee2d0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/iio/dac/max5821.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
#define MAX5821_EXTENDED_DAC_A 0x04
2727
#define MAX5821_EXTENDED_DAC_B 0x08
2828

29-
enum max5821_device_ids {
30-
ID_MAX5821,
31-
};
32-
3329
struct max5821_data {
3430
struct i2c_client *client;
3531
unsigned short vref_mv;
@@ -332,7 +328,7 @@ static int max5821_probe(struct i2c_client *client)
332328
}
333329

334330
static const struct i2c_device_id max5821_id[] = {
335-
{ "max5821", ID_MAX5821 },
331+
{ .name = "max5821" },
336332
{ }
337333
};
338334
MODULE_DEVICE_TABLE(i2c, max5821_id);

0 commit comments

Comments
 (0)