Re: [PATCH] w1: ds2482: Drop explicit initialization of struct i2c_device_id::driver_data to 0

From: Wolfram Sang
Date: Thu Jul 25 2024 - 16:51:31 EST


On Thu, Jul 25, 2024 at 06:09:07PM +0200, Uwe Kleine-König wrote:
> This driver doesn'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@xxxxxxxxxxxx>

Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature