Re: [PATCH RFC 4/4] i2c: slave-eeprom: convert to using a pointer in i2c_device_id
From: Andy Shevchenko
Date: Tue Aug 15 2023 - 11:53:53 EST
On Mon, Aug 14, 2023 at 02:52:52PM -0700, Dmitry Torokhov wrote:
> Switch the driver to use newly added "data" pointer in i2c_device_id and
> introduce struct eeprom_chip to describe chip's characteristics instead
> of cramming it all into an unisigned long and then decipher.
...
> - const struct i2c_device_id *id = i2c_client_get_device_id(client);
> + const struct i2c_device_id *id;
> + id = i2c_client_get_device_id(client);
> + if (!id)
> + return -EINVAL;
Unneeded piece of change.
--
With Best Regards,
Andy Shevchenko