aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/battery.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-27ACPI: battery: Drop redundant lockingRafael J. Wysocki1-12/+0
2025-09-28ACPI: battery: Add synchronization between interface updatesRafael J. Wysocki1-14/+29
2025-07-03Revert "ACPI: battery: negate current when discharging"Rafael J. Wysocki1-16/+3
2025-05-09ACPI: battery: negate current when dischargingPeter Marheine1-3/+16
2025-04-09ACPI: battery: Round capacity percengate to closest integershitao1-2/+2
2024-12-10ACPI: battery: Rename extensions to hook in messagesThomas Weißschuh1-7/+7
2024-11-28Merge tag 'for-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/li...Linus Torvalds1-1/+2
2024-11-04ACPI: battery: Check for error code from devm_mutex_init() callAndy Shevchenko1-2/+8
2024-10-15ACPI: battery: Register power supply with power_supply_register()Thomas Weißschuh1-1/+2
2024-10-07ACPI: battery: use DEFINE_SIMPLE_DEV_PM_OPSThomas Weißschuh1-6/+2
2024-10-07ACPI: battery: initialize mutexes through devm_ APIsThomas Weißschuh1-7/+2
2024-10-07ACPI: battery: allocate driver data through devm_ APIsThomas Weißschuh1-3/+1
2024-10-07ACPI: battery: check result of register_pm_notifier()Thomas Weißschuh1-1/+3
2024-10-04Merge tag 'acpi-6.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ra...Linus Torvalds1-11/+17
2024-10-02move asm/unaligned.h to linux/unaligned.hAl Viro1-1/+1
2024-10-02ACPI: battery: Fix possible crash when unregistering a battery hookArmin Wolf1-3/+9
2024-10-02ACPI: battery: Simplify battery hook lockingArmin Wolf1-9/+9
2024-09-04ACPI: battery: use driver core managed async probingThomas Weißschuh1-24/+7
2024-08-02ACPI: battery: Remove redundant NULL initalizationsIlpo Järvinen1-2/+2
2024-08-02ACPI: battery: Use strscpy() instead of strcpy()Muhammad Qasim Abdul Majeed1-2/+2
2024-07-16Merge tag 'acpi-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ra...Linus Torvalds1-13/+24
2024-07-01ACPI: battery: Add support for charge limiting stateArmin Wolf1-4/+7
2024-07-01ACPI: battery: add devm_battery_hook_register()Thomas Weißschuh1-0/+15
2024-06-13ACPI: battery: create alarm sysfs attribute atomicallyThomas Weißschuh1-4/+12
2024-06-13ACPI: battery: use sysfs_emit over sprintfThomas Weißschuh1-1/+1
2024-06-13ACPI: battery: constify powersupply propertiesThomas Weißschuh1-4/+4
2023-10-06ACPI: bus: Add context argument to acpi_dev_install_notify_handler()Rafael J. Wysocki1-1/+1
2023-07-14ACPI: battery: Install Notify() handler directlyMichal Wilczynski1-5/+19
2023-01-30ACPI: battery: Increase maximum string lengthArmin Wolf1-5/+7
2023-01-30ACPI: battery: Fix buffer overread if not NUL-terminatedArmin Wolf1-8/+17
2023-01-18ACPI: battery: Fix missing NUL-termination with large stringsArmin Wolf1-1/+1
2022-12-12Merge tag 'acpi-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/raf...Linus Torvalds1-4/+6
2022-12-12Merge branches 'acpi-apei', 'acpi-x86', 'acpi-battery' and 'acpi-pfrut'Rafael J. Wysocki1-1/+4
2022-12-02ACPI: battery: Call power_supply_changed() when adding hooksArmin Wolf1-1/+4
2022-11-23ACPI: make remove callback of ACPI driver voidDawei Li1-3/+2
2022-11-16ACPI: battery: Pass battery hook pointer to hook callbacksArmin Wolf1-4/+4
2022-05-06ACPI: battery: Make "not-charging" the default on no charging or full infoWerner Sembach1-23/+1
2022-02-25ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3Maximilian Luz1-0/+12
2022-01-10Merge branches 'acpi-tables', 'acpi-numa', 'acpi-sysfs', 'acpi-cppc', 'acpi-t...Rafael J. Wysocki1-0/+22
2022-01-04ACPI / x86: Introduce an acpi_quirk_skip_acpi_ac_and_battery() helperHans de Goede1-39/+3
2021-12-30ACPI: battery: Add the ThinkPad "Not Charging" quirkThomas Weißschuh1-0/+22
2021-10-13ACPI: battery: Accept charges over the design capacity as fullAndré Almeida1-1/+1
2021-04-08ACPI: battery: fix some coding style issuesXiaofei Tan1-29/+34
2021-02-04ACPI: battery: Clean up printing messagesRafael J. Wysocki1-17/+16
2020-11-09ACPI: Fix whitespace inconsistenciesMaximilian Luz1-1/+1
2020-06-22ACPI: procfs: Remove last dirs after being marked deprecated for a decadeThomas Renninger1-255/+0
2020-03-04ACPI / battery: Cleanup Lenovo Ideapad Miix 320 DMI table entryHans de Goede1-5/+5
2020-02-04proc: convert everything to "struct proc_ops"Alexey Dobriyan1-8/+7
2019-12-16ACPI / battery: Deal better with neither design nor full capacity not being r...Hans de Goede1-12/+39
2019-12-16ACPI / battery: Use design-cap for capacity calculations if full-cap is not a...Hans de Goede1-3/+8
2019-12-16ACPI / battery: Deal with design or full capacity being reported as -1Hans de Goede1-7/+12
2019-10-18acpi: Use pr_warn instead of pr_warningKefeng Wang1-1/+1
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157Thomas Gleixner1-14/+1
2018-08-09ACPI / battery: Do not export energy_full[_design] on devices without full_ch...Hans de Goede1-0/+19
2018-07-25ACPI / battery: get rid of negations in conditionsDmitry Rozhkov1-10/+12
2018-07-25ACPI / battery: use specialized print macrosDmitry Rozhkov1-5/+3
2018-07-25ACPI / battery: reorder headers alphabeticallyDmitry Rozhkov1-5/+6
2018-07-25ACPI / battery: drop inclusion of init.hDmitry Rozhkov1-1/+0
2018-07-24ACPI: battery: remove redundant old_present check on insertionLucas Rangit Magasweran1-4/+4
2018-07-04ACPI / battery: Safe unregistering of hooksJouke Witteveen1-4/+5
2018-06-05Merge tag 'acpi-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ra...Linus Torvalds1-11/+70
2018-05-16acpi/battery: simplify procfs codeChristoph Hellwig1-95/+26
2018-05-10ACPI / battery: Add quirk to avoid checking for PMIC with native driverCarlo Caione1-8/+34
2018-05-02ACPI / battery: Ignore AC state in handle_discharging on systems where it is ...Hans de Goede1-1/+21
2018-05-02ACPI / battery: Add handling for devices which wrongly report discharging stateHans de Goede1-1/+14
2018-05-02ACPI / battery: Remove initializer for unused ident dmi_system_idHans de Goede1-2/+2
2018-04-02Merge branches 'acpi-battery', 'acpi-doc' and 'acpi-pmic'Rafael J. Wysocki1-3/+171
2018-03-19Revert "ACPI / battery: Add quirk for Asus GL502VSK and UX305LA"Daniel Drake1-45/+3
2018-03-13Revert "ACPI: battery: Add the ThinkPad "Not Charging" quirk"Rafael J. Wysocki1-23/+1
2018-02-27ACPI: battery: do not export degraded capacity values over 100Laszlo Toth1-0/+27
2018-02-27ACPI: battery: make function __battery_hook_unregister() staticColin Ian King1-1/+1
2018-02-21ACPI: battery: Add the ThinkPad "Not Charging" quirkOgnjen Galic1-1/+23
2018-02-21battery: Add the battery hooking APIOgnjen Galic1-3/+144
2018-02-04ACPI / battery: Add quirk for Asus UX360UA and UX410UAKKai Heng Feng1-0/+16
2017-12-18ACPI / battery: Add quirk for Asus GL502VSK and UX305LAKai-Heng Feng1-3/+29
2017-12-13ACPI: battery: Drop redundant test for failureBjørn Mork1-3/+1
2017-08-24ACPI: make device_attribute constBhumika Goyal1-1/+1
2017-06-15ACPI / PM: Ignore spurious SCI wakeups from suspend-to-idleRafael J. Wysocki1-1/+1
2017-06-09Merge branches 'intel_pstate' and 'pm-sleep'Rafael J. Wysocki1-1/+1
2017-06-07Revert "ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idle"Rafael J. Wysocki1-1/+1
2017-05-09Merge branches 'pm-domains', 'pm-cpuidle', 'pm-sleep' and 'powercap'Rafael J. Wysocki1-1/+1
2017-05-05ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idleRafael J. Wysocki1-1/+1
2017-04-19ACPI / battery: Add a blacklist with PMIC ACPI HIDs with a native battery driverHans de Goede1-0/+14
2017-04-19ACPI / battery: Fix acpi_battery_exit on acpi_battery_init_async errorsHans de Goede1-2/+6
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-11-16ACPI / battery: If _BIX fails, retry with _BIFDave Lambley1-24/+48
2016-08-31ACPI / battery: Add sysfs representation after checking _BSTCarlos Garnacho1-4/+6
2016-05-21ACPI / battery: Correctly serialise with the pending async probeChris Wilson1-1/+1
2015-07-08ACPI: Remove FSF mailing addressesJarkko Nikula1-4/+0
2015-06-15ACPI / battery: mark DMI table as __initconstMathias Krause1-3/+5
2015-06-15ACPI / battery: minor tweaks to acpi_battery_units()Mathias Krause1-8/+6
2015-06-15ACPI / battery: constify the offset tablesMathias Krause1-4/+4
2015-05-14ACPI / battery: ensure acpi_battery_init() has finishLuis Henriques1-1/+3
2015-05-14ACPI / battery: drop useless return statementsLuis Henriques1-5/+5
2015-05-14ACPI / battery: abort initialization earlier if acpi_disabledLuis Henriques1-3/+3
2015-04-14Merge tag 'pm+acpi-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+2
2015-04-14ACPI / battery: Fix doubly added battery on system suspendKrzysztof Kozlowski1-1/+1
2015-03-18ACPI / battery: make warning greppableMartin Kepplinger1-2/+2
2015-03-13power_supply: Change ownership from driver to coreKrzysztof Kozlowski1-25/+30
2015-03-13power_supply: Move run-time configuration to separate structureKrzysztof Kozlowski1-1/+2
2014-11-24ACPI: Add _DEP support to fix battery issue on Asus T100TALan Tianyu1-0/+4
2014-09-24ACPI / battery: Replace strnicmp with strncasecmpRasmus Villemoes1-1/+1
2014-09-09Revert "ACPI / battery: fix wrong value of capacity_now reported when fully c...Bjørn Mork1-14/+0
2014-09-09Revert "ACPI / battery: Fix warning message in acpi_battery_get_state()"Bjørn Mork1-1/+1
2014-08-10ACPI / battery: Fix warning message in acpi_battery_get_state()Mariusz Ceier1-1/+1
2014-07-30ACPI / battery: remove duplicated include from battery.cWei Yongjun1-1/+0
2014-07-07ACPI / battery: fix wrong value of capacity_now reported when fully chargedJosef Gajdusek1-0/+14
2014-07-07ACPI / battery: Retry to get battery information if failed during probingLan Tianyu1-1/+26
2014-06-19Merge branches 'acpi-general', 'acpi-processor', 'acpi-lpss' and 'acpi-battery'Rafael J. Wysocki1-3/+36
2014-06-17ACPI: use kstrto*() instead of simple_strto*()Christoph Jaeger1-1/+4
2014-06-17ACPI / battery: add quirk for Acer Aspire V5-573GAlexander Mezin1-0/+24
2014-06-17ACPI / battery: use callback for setting up quirksAlexander Mezin1-2/+8
2014-05-30ACPI / battery: wakeup the system only when necessaryZhang Rui1-1/+17
2014-05-30ACPI / battery: introduce support for POWER_SUPPLY_PROP_CAPACITY_LEVELZhang Rui1-3/+20
2014-05-16ACPI / battery: Accelerate battery resume callbackLan Tianyu1-9/+27
2014-05-06ACPI: Revert "ACPI / Battery: Remove battery's proc directory"Lan Tianyu1-1/+328
2014-03-19ACPI / battery: call ACPI notifier chain in acpi_battery_notifyAlexander Mezin1-0/+1
2014-03-19ACPI / battery: move some ACPI_BATTERY_* definitions to headerAlexander Mezin1-4/+2
2014-02-13ACPI / battery: fix battery driver compile error when CONFIG_PM_SLEEP is unde...Shuah Khan1-0/+2
2014-02-05ACPI / battery: Fix incorrect sscanf() string in acpi_battery_init_alarm()Luis G.F1-1/+1
2014-01-12Merge branch 'acpi-cleanup'Rafael J. Wysocki1-2/+1
2014-01-06ACPI / Battery: Add a _BIX quirk for NEC LZ750/LSLan Tianyu1-1/+21
2013-12-07ACPI: Clean up inclusions of ACPI header filesLv Zheng1-2/+1
2013-10-12ACPI / Battery: Remove battery's proc directoryLan Tianyu1-327/+1
2013-08-27Merge branch 'acpi-assorted'Rafael J. Wysocki1-2/+0
2013-08-27Merge branch 'acpi-cleanup'Rafael J. Wysocki1-14/+5
2013-08-14Merge back earlier 'acpi-assorted' materialRafael J. Wysocki1-2/+0
2013-07-30ACPI / battery: Fix parsing _BIX return valueLan Tianyu1-0/+2
2013-07-15ACPI: Remove the old /proc/acpi/event interfaceThomas Renninger1-2/+0
2013-07-15ACPI: introduce helper function acpi_execute_simple_method()Jiang Liu1-6/+2
2013-07-15ACPI: introduce helper function acpi_has_method()Jiang Liu1-8/+3
2013-06-19ACPI / battery: Make sure all spaces are in correct placesNicholas Mazzuca1-9/+9
2013-05-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2013-04-09procfs: new helper - PDE_DATA(inode)Al Viro1-1/+1
2013-03-25ACPI: suppress compiler warning in battery.cAndy Shevchenko1-1/+1
2013-01-26ACPI: Remove useless type argument of driver .remove() operationRafael J. Wysocki1-1/+1
2012-11-16ACPI / battery: Correct battery capacity values on ThinkpadsKamil Iskra1-0/+77
2012-08-10ACPI / PM: Fix unused function warnings for CONFIG_PM_SLEEPRafael J. Wysocki1-0/+2
2012-07-26Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/...Linus Torvalds1-0/+9
2012-07-01ACPI: Use struct dev_pm_ops for power management in the battery driverRafael J. Wysocki1-4/+11
2012-06-01ACPI Battery: Added capacitysrinivas pandruvada1-0/+9
2012-05-08ACPI battery: only refresh the sysfs files when pertinent information changesAndy Whitcroft1-1/+9
2012-01-03switch procfs to umode_t useAl Viro1-1/+1
2011-08-05Merge branch 'battery' into releaseLen Brown1-3/+7
2011-08-05Battery: sysfs_remove_battery(): possible circular lockingSergey Senozhatsky1-3/+7
2011-08-02Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/...Linus Torvalds1-32/+50
2011-08-02Merge branches 'acpica', 'battery', 'boot-irqs', 'bz-24492', 'bz-9528', 'from...Len Brown1-32/+50
2011-07-21treewide: fix potentially dangerous trailing ';' in #defined values/expressionsPhil Carmody1-1/+1
2011-07-16ACPI / Battery: propagate sysfs error in acpi_battery_add()Stefan Hajnoczi1-3/+8
2011-07-16ACPI / Battery: avoid acpi_battery_add() use-after-freeStefan Hajnoczi1-6/+12
2011-07-16ACPI: constify ops structsVasiliy Kulikov1-1/+1
2011-07-14ACPI / Battery: Resolve the race condition in the sysfs_remove_battery()Lan Tianyu1-1/+6
2011-07-14ACPI / Battery: Add the check before refresh sysfs in the battery_notify()Lan Tianyu1-2/+4
2011-07-14ACPI / Battery: Add the hibernation process in the battery_notify()Lan Tianyu1-0/+1
2011-07-14ACPI / Battery: Rename acpi_battery_quirks2 with acpi_battery_quirksLan Tianyu1-2/+2
2011-07-14ACPI / Battery: Change 16-bit signed negative battery current into correct valueLan Tianyu1-16/+10
2011-07-14ACPI / Battery: Add the power unit macroLan Tianyu1-3/+8
2011-03-22ACPI battery: fribble sysfs files from a resume notifierKyle McMartin1-0/+22
2011-01-20ACPI / Battery: remove battery refresh on resumeLinus Torvalds1-1/+0
2011-01-12ACPI / Battery: Update information on info notification and resumeRafael J. Wysocki1-0/+14
2011-01-12ACPI: delete CONFIG_ACPI_PROCFS_POWER and power procfs I/F in 2.6.39Zhang Rui1-0/+2
2010-10-25Merge branch 'battery' into releaseLen Brown1-8/+27
2010-10-23ACPI / Battery: Return -ENODEV for unknown values in get_property()Rafael J. Wysocki1-8/+27
2010-10-22ACPI battery: support percentage battery remaining capacityZhang Rui1-1/+37
2010-10-15ACPI ac/battery/sbs: sysfs I/F always built in, procfs I/F disabled by defaultZhang Rui1-21/+0
2010-08-31ACPI: Don't report current_now if battery reports in mWhMatthew Garrett1-1/+0
2010-07-06ACPI battery: don't invoke power_supply_changed twice when battery is hot-addedZhang Rui1-1/+7
2010-04-06Merge branches 'battery', 'bugzilla-14667', 'bugzilla-15096', 'bugzilla-15480...Len Brown1-0/+1
2010-04-04ACPI: battery drivers should call power_supply_changed()Alan Jenkins1-1/+1
2010-04-04ACPI: battery: Fix CONFIG_ACPI_SYSFS_POWER=nAlan Jenkins1-2/+2
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2010-03-14Merge branches 'battery-2.6.34', 'bugzilla-10805', 'bugzilla-14668', 'bugzill...Len Brown1-2/+2
2010-01-28ACPI: replace acpi_integer by u64Lin Ming1-2/+2
2010-01-15ACPI: Battery: Add support for _BIX extended info methodAlexey Starikovskiy1-10/+58
2010-01-15ACPI: Battery: Add bit flagsAlexey Starikovskiy1-12/+14
2009-12-16battery: fix typo in commentJustin P. Mattock1-1/+1
2009-09-19Merge branch 'battery' into releaseLen Brown1-0/+20
2009-08-29ACPI battery: work around negative s16 battery current on AcerHector Martin1-0/+20
2009-08-28ACPI: Move definition of PREFIX from acpi_bus.h to internal..hLen Brown1-0/+2
2009-06-18ACPI: battery: fix CONFIG_ACPI_PROCFS_POWER=n build warningLen Brown1-7/+5
2009-06-18ACPI: battery: use .notify method instead of installing handler directlyBjorn Helgaas1-17/+5
2009-04-11Revert "ACPI battery: fix async boot oops"Linus Torvalds1-1/+1
2009-04-07ACPI battery: fix async boot oopsVegard Nossum1-1/+1
2009-04-05Merge branch 'linus' into releaseLen Brown1-1/+0
2009-04-05Merge branch 'constify' into releaseLen Brown1-1/+1
2009-04-05Merge branch 'async-battery' into releaseLen Brown1-4/+11
2009-04-04ACPI: battery: asynchronous initArjan van de Ven1-4/+11
2009-04-03ACPI: constify VFTs (1/2)Jan Engelhardt1-1/+1
2009-03-31proc 2/2: remove struct proc_dir_entry::ownerAlexey Dobriyan1-1/+0
2009-03-27ACPI: battery: add power_{now,avg} properties to power_classAlexey Starikovskiy1-5/+7
2009-02-21battery: don't assume we are fully charged when not charging or dischargingRichard Hughes1-1/+24
2008-12-22Newly inserted battery might differ from one just removed, soAlexey Starikovskiy1-2/+3
2008-12-05Revert "ACPI: battery: Convert discharge energy rate to current properly"Linus Torvalds1-13/+1
2008-12-04ACPI: Fix ACPI battery regression introduced by commit 558073Rafael J. Wysocki1-7/+10
2008-11-26ACPI: battery: Convert discharge energy rate to current properlyAlexey Starikovskiy1-0/+9
2008-11-11Merge branch 'sysfs' into releaseLen Brown1-1/+1
2008-11-07ACPI: consolidate ACPI_*_COMPONENT definitions in acpi_drivers.hBjorn Helgaas1-1/+0
2008-11-06ACPI: struct device - replace bus_id with dev_name(), dev_set_name()Kay Sievers1-1/+1
2008-10-23Merge branch 'linus' into testLen Brown1-1/+1
2008-10-20x86: sysfs: kill owner field from attributeParag Warudkar1-1/+1