For the four drivers the .driver_data member of i2c_device_id is
write-only. Drop the explicit assignment.
While touching these arrays use a named initializer to assign the .name
member, which is easier to parse for a human.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
}
static const struct i2c_device_id pac1921_id[] = {
- { .name = "pac1921", 0 },
+ { .name = "pac1921" },
{ }
};
MODULE_DEVICE_TABLE(i2c, pac1921_id);
MODULE_DEVICE_TABLE(of, apds9160_of_match);
static const struct i2c_device_id apds9160_id[] = {
- { "apds9160", 0 },
+ { .name = "apds9160" },
{ }
};
MODULE_DEVICE_TABLE(i2c, apds9160_id);
tsl2563_resume);
static const struct i2c_device_id tsl2563_id[] = {
- { "tsl2560", 0 },
- { "tsl2561", 1 },
- { "tsl2562", 2 },
- { "tsl2563", 3 },
+ { .name = "tsl2560" },
+ { .name = "tsl2561" },
+ { .name = "tsl2562" },
+ { .name = "tsl2563" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tsl2563_id);
tsl2583_resume, NULL);
static const struct i2c_device_id tsl2583_idtable[] = {
- { "tsl2580", 0 },
- { "tsl2581", 1 },
- { "tsl2583", 2 },
+ { .name = "tsl2580" },
+ { .name = "tsl2581" },
+ { .name = "tsl2583" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tsl2583_idtable);