1
0
Fork 0

max17135: print ret when failing to write to device

wifi-calibration
Martin T. H. Sandsmark 2016-11-29 13:07:28 +01:00
parent 0f12d59f3c
commit 2af1e1eddf
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ int max17135_reg_write(int reg_num, const unsigned int reg_val)
result = i2c_smbus_write_byte_data(max17135_client, reg_num, reg_val);
if (result < 0) {
dev_err(&max17135_client->dev,
"Unable to write MAX17135 register via I2C\n");
"Unable to write MAX17135 register via I2C: %d\n", result);
return PMIC_ERROR;
}