summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/tps65217_charger.c
Commit message (Collapse)AuthorAgeFilesLines
* power: supply: tps65217: remove debug messages for function callsEnric Balletbo i Serra2017-04-141-4/+0
| | | | | | | Equivalent information can be nowadays obtained using function tracer. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: supply: tps65217: Use generic charger nameMilo Kim2017-01-041-1/+1
| | | | | | | | "tps65217-charger" is more appropriate name because the driver supports not only AC but also USB charger. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: supply: tps65217: Use generic name for get_property()Milo Kim2017-01-041-4/+4
| | | | | | | Rename it as tps65217_charger_get_property(). Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: supply: tps65217: Use generic name for power supply propertyMilo Kim2017-01-041-3/+3
| | | | | | | Replace 'ac_props' with 'charger_props'. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: supply: tps65217: Use generic name for power supply structureMilo Kim2017-01-041-7/+7
| | | | | | | Replace 'ac' of tps65217_charger structure with 'psy'. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: supply: tps65217: Use generic name for charger onlineMilo Kim2017-01-041-8/+8
| | | | | | | | This driver supports AC and USB chargers. Generic name is preferred. Replace 'ac_online' with 'online'. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: supply: tps65217: Support USB charger interruptMilo Kim2017-01-041-24/+28
| | | | | | | | | | | | | | | | | | | TPS65217 has two charger interrupts - AC and USB power status change. Interrupt number in the TPS65217 driver data: IRQ number is only used on requesting the interrupt, so no need to keep it inside the driver data. Interrupt handler: Check not only AC but also USB charger status. In both cases, enable charging operation. Interrupt request: If an interrupt number is invalid, then use legacy polling thread. Otherwise, create IRQ threads to handle AC and USB charger event. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: supply: tps65217: Use 'poll_task' on unloading the moduleMilo Kim2017-01-041-5/+8
| | | | | | | | | | Use the task_struct variable for running polling thread. If polling task is activated, then use it to stop running thread. This is a preceding step of supporting two interrupts of TPS65217 charger, so checking single IRQ number is not appropriate when the module is removed. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* Merge tag 'for-v4.8-rc' into psy-nextSebastian Reichel2016-08-161-0/+1
| | | | Power Supply Fixes for 4.8 cycle
* power_supply: tps65217-charger: Add support for IRQsMarcin Niestroj2016-08-151-7/+33
| | | | | | | | Make use of IRQ resources defined in tps65217 mfd code. If they are valid we use them instead separate poll task, in order to define AC power state. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
* power: move power supply drivers to power/supplySebastian Reichel2016-08-111-0/+268
This moves all power supply drivers from drivers/power/ to drivers/power/supply/. The intention is a cleaner source tree, since drivers/power/ also contains frameworks unrelated to power supply, like adaptive voltage scaling. Signed-off-by: Sebastian Reichel <sre@kernel.org>
OpenPOWER on IntegriCloud