aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2018-04-18 12:08:21 +0000
committerSebastian Reichel <[email protected]>2018-04-25 22:44:52 +0000
commit04d6f72f68eac61abbdaf56dcbfcc8382542f07e (patch)
tree968f726b2cb8951d22d62949292c75cf954dc31e /net/unix/af_unix.c
parentpower: supply: axp288_charger: Do not bind when the charge function is not used (diff)
downloadkernel-04d6f72f68eac61abbdaf56dcbfcc8382542f07e.tar.gz
kernel-04d6f72f68eac61abbdaf56dcbfcc8382542f07e.zip
power: supply: axp288_fuelguage: Do not bind when the fg function is not used
Some devices with an AXP288 PMIC do not have a battery at all, or use external charger and fuelgauge ICs instead of the AXP288 builtin functionality. On such devices we should not bind to the fuelgauge function to avoid exporting a non working power_supply class device. This also avoids the following errors repeating over and over again in dmesg: axp288_fuel_gauge axp288_fuel_gauge: capacity measurement not valid axp288_fuel_gauge axp288_fuel_gauge: Error 0xe2 contents not valid power_supply axp288_fuel_gauge: driver failed to report 'charge_now' property: -6 Cc: Carlo Caione <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions