power: supply: bq24190_charger: Limit over/under voltage fault logging
authorLiam Breck <kernel@networkimprov.net>
Tue, 11 Apr 2017 11:59:54 +0000 (04:59 -0700)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:35 +0000 (01:41 +0200)
commitd63d07c6fc25182af6d3ab5b3b8737b0c1025ebd
treed78566b1a3536b8ce005ce71ecfc3e75216a20cd
parent53db88586acd39400665d32914d1bb7b3da07276
power: supply: bq24190_charger: Limit over/under voltage fault logging

If the charger is unplugged before the battery is full we may
see an over/under voltage fault. Ignore this rather then emitting
a message or uevent.

This fixes messages like these getting logged on charger unplug + replug:
bq24190-charger 15-006b: Fault: boost 0, charge 1, battery 0, ntc 0
bq24190-charger 15-006b: Fault: boost 0, charge 0, battery 0, ntc 0

Cc: Tony Lindgren <tony@atomide.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq24190_charger.c