diff options
author | Jean Delvare <[email protected]> | 2011-12-10 22:53:36 +0100 |
---|---|---|
committer | Anton Vorontsov <[email protected]> | 2012-01-06 05:50:32 +0400 |
commit | 2530daa187be3adef2d7cb41bd51f1384e478f2b (patch) | |
tree | f4210ee87310b4e8e2dbbd45ebb98f25d80c0249 /net/lapb/lapb_subr.c | |
parent | 62df3935a7ef842ad0af6025d2fc59d353de2e1d (diff) |
power_supply: Assume mains power by default
If no power class device is found in power_supply_is_system_supplied(),
the function currently returns 0, which basically means that the system
is supposed to be running on battery. In practice, mobile devices tend
to always implement at least one power class device and more often two
(battery and AC adapter). Systems with no registered power class
devices are more likely to be desktop systems, where the system is
always powered by mains.
So, change the default return value of
power_supply_is_system_supplied() from 0 (running on battery) to 1
(running on mains.)
Signed-off-by: Jean Delvare <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions