mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
hwmon: (ltc4261) Fix error message format
adapter->id is deprecated and not set by any adapter driver, so this was certainly not what the author wanted to use. adapter->nr maybe, but as dev_err() already includes this value, as well as the client's address, there's no point repeating them. Better print a simple error message in plain English words. Signed-off-by: Jean Delvare <[email protected]> Cc: Guenter Roeck <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
69f8b74193
commit
475200c088
1 changed files with 1 additions and 2 deletions
|
|
@ -230,8 +230,7 @@ static int ltc4261_probe(struct i2c_client *client,
|
|||
return -ENODEV;
|
||||
|
||||
if (i2c_smbus_read_byte_data(client, LTC4261_STATUS) < 0) {
|
||||
dev_err(&client->dev, "Failed to read register %d:%02x:%02x\n",
|
||||
adapter->id, client->addr, LTC4261_STATUS);
|
||||
dev_err(&client->dev, "Failed to read status register\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue