]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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, 15 Sep 2021 08:00:27 +0000 (10:00 +0200)
commitbd22dd4a2aa33576b4f141912fd3a29e750dfb80
tree3806fb7f47618e29f73b918e5c6e5f27f26af743
parent3a3a6e748d1b3097767708d99e30e6556e91af71
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