aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/mediatek
Commit message (Collapse)AuthorAgeFilesLines
* mediatek: battery: fix uV/mV batt_volMoyster2018-12-011-1/+1
|
* power: rebase meizu changes against stock battery_common.CMoyster2018-12-011-19/+20
|
* Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds2018-11-294-4/+4
| | | | | | | | | | | | | | This was entirely automated, using the script by Al: PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>' sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \ $(git grep -l "$PATT"|grep -v ^include/linux/uaccess.h) to do the replacement at the end of the merge window. Requested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Moyster <oysterized@gmail.com>
* power: mediatek: add voltage_now battery propertyTodd Poynor2017-12-131-0/+4
| | | | | | | | | Add battery property voltage_now, in units of uV per power_supply standard. healthd and Android will use this value instead of the existing batt_vol property (which is unepxectedly in mV units). Change-Id: Ida25d702c30507ecedba4818a84be9baf66f67e0 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* power: mediatek: send battery cold/overheat health status to userspaceTodd Poynor2017-12-131-1/+11
| | | | | Change-Id: I4daba069df9fe64f44f4ef064478e7b3a37f9f13 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* power: mediatek: remove wireless power_supply if no kernel supportTodd Poynor2017-12-131-0/+14
| | | | | | | | Remove wireless power_supply entry if CONFIG_MTK_WIRELESS_CHARGER_SUPPORT is not enabled. Change-Id: I9cbb1d59c29b70c1adf314bf4a93e9e0c02cd431 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* power: mediatek: use POWER_SUPPLY_STATUS_DISCHARGINGTodd Poynor2017-12-131-1/+1
| | | | | | | | | Battery discharging use "discharging" status instead of "not charging" (which is normally used for charger connected but not charging due to overtemperature or other battery health concerns). Change-Id: I836e7c6435f7a14695975b0df8364ed4671ee9ed Signed-off-by: Todd Poynor <toddpoynor@google.com>
* battery: reduce debug logShangbing Hu2017-09-251-1/+1
| | | | | | | | | | | | | | | [Detail] reduce debug log [Solution] reduce debug log [Feature] Memory Optimization MTK-Commit-Id: 2f32bf6133de1b1a68c13fe25c02877d56dbcc49 Change-Id: I6b3ad829acde4af3aab1def851990be2ecfd19cc Signed-off-by: Shangbing Hu <shangbing.hu@mediatek.com> CR-Id: ALPS02371858
* battery: mtk: remove meizu fuelgauge_dump_info log, taking stupid amount of ↵Mister Oyster2017-09-171-54/+0
| | | | space in /data, doing stupid kernel file manipulation
* Fuel Gauge: fix suspend/resume calculationAnmin Hsu2017-05-111-20/+2
| | | | | | | | | | | | | | | | | | | [Detail] 1. bat volt is wrong in the fuel gauge algorithm of suspend/resume 2. fuel gauge log cannot print out [Solution] 1. fix correct bat volt in resume 2. fix fuel gauge log level [Feature] Battery Management MTK-Commit-Id: 81ea0e76922c6280d1f7dcdb601d6ba04cf21369 Change-Id: Ibfd975bc72a373c8b15a0737361c50b7054fa865 Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> CR-Id: ALPS02314143 (cherry picked from commit bd1c50b3720b0e12f3e6b8d0fb32dcab1ca41461) Backported for 3.10 Signed-off-by: Mister Oyster <oysterized@gmail.com>
* drivers: mediatek: battery_meter: Reduce debug logTim Kryger2017-04-111-1/+1
| | | | | | | | Reduce the amount of information printed to the kernel log. Bug: 27767950 Change-Id: Ibd3b84615bc50bdc82673ee7fc2ff07e97a45c37 Signed-off-by: Tim Kryger <tkryger@google.com>
* mediatek: battery: Report the voltage in the correct scaleDiogo Ferreira2016-11-071-2/+2
| | | | | | The framework expects microvolts but we were reporting millivolts. Change-Id: I16a38e71e7cc1d87278bed7440fcdfefae34955f
* Fix "[Security Vulnerability] Battery:potential buffer overflow" issueyang-cy.chen2016-08-262-11/+11
| | | | | | | | | | | | | | Problem: potential buffer overflow through copy_from_user. Solution: Explicitly copy one byte since only need one byte data. Bug num:28085222 Change-Id: I097d433f70267ddbaad1b08dfbdd9505467d300c Signed-off-by: yang-cy.chen <yang-cy.chen@mediatek.com> (cherry picked from commit 78aae38e1ec91b758317450c308a4cfd31bda3d3)
* first commitMeizu OpenSource2016-08-157-0/+19462