mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iio: Initialize i2c_device_id arrays using member names (part 2)
This is a follow-up for commit f68afce8e8 ("iio: Initialize
i2c_device_id arrays using member names"). This previous commit missed
these two instances because these drivers didn't exist yet in the tree
where I prepared the respective patch.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
e8349f9473
commit
d60d631451
|
|
@ -872,8 +872,8 @@ static const struct richtek_dev_data rtq6059_devdata = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id rtq6056_id[] = {
|
||||
{ "rtq6056", (kernel_ulong_t)&rtq6056_devdata },
|
||||
{ "rtq6059", (kernel_ulong_t)&rtq6059_devdata },
|
||||
{ .name = "rtq6056", .driver_data = (kernel_ulong_t)&rtq6056_devdata },
|
||||
{ .name = "rtq6059", .driver_data = (kernel_ulong_t)&rtq6059_devdata },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, rtq6056_id);
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ static const struct of_device_id mmc5983_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, mmc5983_of_match);
|
||||
|
||||
static const struct i2c_device_id mmc5983_id[] = {
|
||||
{ "mmc5983" },
|
||||
{ .name = "mmc5983" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mmc5983_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user