android_kernel_xiaomi_sdm845/drivers/power
Andres Salomon 8efe444038 power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL
The CAPACITY_LEVEL stuff defines various levels of charge; however, what
is the difference between them?  What differentiates between HIGH and NORMAL,
LOW and CRITICAL, etc?

As it appears that these are fairly arbitrary, we end up making such policy
decisions in the kernel (or in hardware).  This is the sort of decision that
should be made in userspace, not in the kernel.

If the hardware does not support _CAPACITY and it cannot be easily calculated,
then perhaps the driver should register a custom CAPACITY_LEVEL attribute;
however, userspace should not become accustomed to looking for such a thing,
and we should certainly not encourage drivers to provide CAPACITY_LEVEL
stubs.

The following removes support for POWER_SUPPLY_PROP_CAPACITY_LEVEL.  The
OLPC battery driver is the only driver making use of this, so it's
removed from there as well.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2008-02-02 02:42:59 +03:00
..
apm_power.c power supply : use class iteration api 2008-01-24 20:40:44 -08:00
ds2760_battery.c Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
Kconfig Don't compile the PMU power driver on 64-bit PowerPC 2007-07-23 12:42:45 +01:00
Makefile [BATTERY] One Laptop Per Child power/battery driver 2007-07-10 11:28:22 +01:00
olpc_battery.c power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL 2008-02-02 02:42:59 +03:00
pda_power.c Power supply class and drivers: remove non obligatory return statements 2007-07-15 22:32:38 +04:00
pmu_battery.c Power supply class and drivers: remove non obligatory return statements 2007-07-15 22:32:38 +04:00
power_supply_core.c power supply : use class iteration api 2008-01-24 20:40:44 -08:00
power_supply_leds.c [BATTERY] power_supply_leds: use kasprintf 2008-02-02 02:42:59 +03:00
power_supply_sysfs.c power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL 2008-02-02 02:42:59 +03:00
power_supply.h Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00