diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-09-19 08:56:15 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-09-21 11:45:43 +0200 |
commit | 8ce98dd21fcfaab3b6177cfc167d6b6b71dc9fc1 (patch) | |
tree | 28ffb12166607efcd6eeb034135e05e0edd39945 /drivers/misc | |
parent | b1d4dc15b2f430a4f541ab6c91e63a71cf230b7d (diff) | |
download | linux-8ce98dd21fcfaab3b6177cfc167d6b6b71dc9fc1.tar.gz linux-8ce98dd21fcfaab3b6177cfc167d6b6b71dc9fc1.tar.bz2 linux-8ce98dd21fcfaab3b6177cfc167d6b6b71dc9fc1.zip |
misc: eeprom: use helper to get i2c_client from kobj
Slightly easier to read.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/eeprom/eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |