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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 09:45:17 +0000 (11:45 +0200)
commitf506d9ffa477d1720bd707ab12905d591413af04
treeb2bbd387c33675cbb6dacc94bfc97ee2540dd910
parent0eaef2553e99ac5f7a9b3c642521f3003c62bd73
power: supply: axp288_fuel_gauge: Report register-address on readb / writeb errors

[ Upstream commit caa534c3ba40c6e8352b42cbbbca9ba481814ac8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/axp288_fuel_gauge.c