power: supply: axp288_fuel_gauge: Report register-address on readb / writeb errors
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Aug 2021 13:30:59 +0000 (15:30 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 5 Aug 2021 16:54:52 +0000 (18:54 +0200)
commitcaa534c3ba40c6e8352b42cbbbca9ba481814ac8
tree154d9d02218132dccb57bca2bffb889221b2f38b
parent8f6cc48e1aff3c1d641a65f3ad6d01c233269ea8
power: supply: axp288_fuel_gauge: Report register-address on readb / writeb errors

When fuel_gauge_reg_readb()/_writeb() fails, report which register we
were trying to read / write when the error happened.

Also reword the message a bit:
- Drop the axp288 prefix, dev_err() already prints this
- Switch from telegram / abbreviated style to a normal sentence, aligning
  the message with those from fuel_gauge_read_*bit_word()

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_fuel_gauge.c