diff options
| author | Uwe Kleine-König <[email protected]> | 2024-09-20 17:34:34 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-10-09 11:54:49 +0200 |
| commit | d09d3485969fbb38f8882dac830ba1b7ddbfbbab (patch) | |
| tree | 49599526f77fa026c6b3d1775b6ae43f8681530e | |
| parent | b5b7a2c92332b6f799e81f256aed6a93a0e037fd (diff) | |
staging: olpc_dcon: 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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/olpc_dcon/olpc_dcon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index 4cb904a5f8f4..75809f9fa108 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon.c +++ b/drivers/staging/olpc_dcon/olpc_dcon.c @@ -767,7 +767,7 @@ static const struct dev_pm_ops dcon_pm_ops = { }; static const struct i2c_device_id dcon_idtable[] = { - { "olpc_dcon", 0 }, + { "olpc_dcon" }, { } }; MODULE_DEVICE_TABLE(i2c, dcon_idtable); |