On Sat, 19 Sep 2020 08:56:15 +0200, Wolfram Sang wrote: > Slightly easier to read. > > Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> > --- > drivers/misc/eeprom/eeprom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/eeprom/eeprom.c b/drivers/misc/eeprom/eeprom.c > index 226b5efa6a77..34fa385dfd4b 100644 > --- a/drivers/misc/eeprom/eeprom.c > +++ b/drivers/misc/eeprom/eeprom.c > @@ -76,7 +76,7 @@ static ssize_t eeprom_read(struct file *filp, struct kobject *kobj, > struct bin_attribute *bin_attr, > char *buf, loff_t off, size_t count) > { > - struct i2c_client *client = to_i2c_client(kobj_to_dev(kobj)); > + struct i2c_client *client = kobj_to_i2c_client(kobj); > struct eeprom_data *data = i2c_get_clientdata(client); > u8 slice; > Reviewed-by: Jean Delvare <jdelvare@xxxxxxx> -- Jean Delvare SUSE L3 Support