]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: dac: max5821: Drop unused i2c driver data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 19 May 2026 08:13:06 +0000 (10:13 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:46 +0000 (11:01 +0100)
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>
drivers/iio/dac/max5821.c

index e7e29359f8fe5a5c33c29a100b2ce381f2321f71..f3ebbdff5487bd1f6f661058504390887ba506cb 100644 (file)
 #define MAX5821_EXTENDED_DAC_A                 0x04
 #define MAX5821_EXTENDED_DAC_B                 0x08
 
-enum max5821_device_ids {
-       ID_MAX5821,
-};
-
 struct max5821_data {
        struct i2c_client       *client;
        unsigned short          vref_mv;
@@ -332,7 +328,7 @@ static int max5821_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max5821_id[] = {
-       { "max5821", ID_MAX5821 },
+       { .name = "max5821" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max5821_id);