Skip to content

gpio-charger: add devicetree support

Heiko Stuebner linux-devicetree linux-pm lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches2 repliesSuperseded

Changes in v4 from the cover letter

- remove of_match_ptr. All used of_xx function have stubs for !OF and of_device_id also is always defined, so no need for of_match_ptr

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: document gpio-charger bindingsDocumentation/devicetree/bindings/power_supply/gpio-charger.txt+27 -00 replies
2/3power: gpio-charger: add device tree supportdrivers/power/gpio-charger.c+70 -20 replies
3/3power: gpio-charger: do not use gpio value directlydrivers/power/gpio-charger.c+1 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDoug Anderson
1/3R-b
2/3R-b T-b
3/3R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] gpio-charger: add devicetree support

This series adds devicetree support to the gpio-charger and fixes a small issue with the return value of gpio_get_value.

changes since v3:
- remove of_match_ptr. All used of_xx function have stubs for !OF and of_device_id also is always defined, so no need for of_match_ptr
changes since v2:
- fix (hopefully all) issues pointed out by Doug Anderson
- add missing of_node assignment to charger
changes since v1:
- adapt binding example to show how the charger fits into the power-supplies structure

Heiko Stuebner (3):
dt-bindings: document gpio-charger bindings
power: gpio-charger: add device tree support
power: gpio-charger: do not use gpio value directly

 .../bindings/power_supply/gpio-charger.txt         | 27 ++++++++
 drivers/power/gpio-charger.c                       | 74 +++++++++++++++++++++-
 2 files changed, 98 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power_supply/gpio-charger.txt
Signature · 1 line
2.1.0