]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/chrome: Drop explicit initialization of struct i2c_device_id::driver_data...
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 20 Sep 2024 15:14:44 +0000 (17:14 +0200)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 30 Sep 2024 01:34:01 +0000 (01:34 +0000)
commit7cbf28998d737e04c4872cfeedd1a546d22cfb44
treea32eb7ee34992a028784256925e3bdf70a5994b2
parent9852d85ec9d492ebef56dc5f229416c925758edc
platform/chrome: 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>
Link: https://lore.kernel.org/r/20240920151445.499933-2-u.kleine-koenig@baylibre.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_i2c.c
drivers/platform/chrome/cros_hps_i2c.c