staging: iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0
These drivers don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240606155407.499344-1-u.kleine-koenig@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
2aac3f9aec
commit
4f9b4594bb
@ -109,12 +109,12 @@ static int adt7316_i2c_probe(struct i2c_client *client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct i2c_device_id adt7316_i2c_id[] = {
|
static const struct i2c_device_id adt7316_i2c_id[] = {
|
||||||
{ "adt7316", 0 },
|
{ "adt7316" },
|
||||||
{ "adt7317", 0 },
|
{ "adt7317" },
|
||||||
{ "adt7318", 0 },
|
{ "adt7318" },
|
||||||
{ "adt7516", 0 },
|
{ "adt7516" },
|
||||||
{ "adt7517", 0 },
|
{ "adt7517" },
|
||||||
{ "adt7519", 0 },
|
{ "adt7519" },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -721,8 +721,8 @@ static int ad5933_probe(struct i2c_client *client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct i2c_device_id ad5933_id[] = {
|
static const struct i2c_device_id ad5933_id[] = {
|
||||||
{ "ad5933", 0 },
|
{ "ad5933" },
|
||||||
{ "ad5934", 0 },
|
{ "ad5934" },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user