Thread (17 messages) 17 messages, 3 authors, 2015-09-23

Re: [PATCH v5 11/11] power: bq24257: Add platform data based initialization

From: Sebastian Reichel <sre@kernel.org>
Date: 2015-09-22 19:29:35
Also in: linux-pm

Hi,

On Fri, Sep 18, 2015 at 04:39:59PM -0500, Andreas Dannenberg wrote:
quoted hunk ↗ jump to hunk
The patch adds a way to setup and initialize the device through the use
of platform data with configuration options equivalent to when using
device firmware (DT or ACPI) for systems where this is not available.
---
 drivers/power/bq24257_charger.c       | 117 ++++++++++++++++++++++++++++++----
 include/linux/power/bq24257_charger.h |  29 +++++++++
 2 files changed, 135 insertions(+), 11 deletions(-)
 create mode 100644 include/linux/power/bq24257_charger.h
diff --git a/drivers/power/bq24257_charger.c b/drivers/power/bq24257_charger.c
index a1068291..6cc288c 100644
--- a/drivers/power/bq24257_charger.c
+++ b/drivers/power/bq24257_charger.c
@@ -27,10 +27,13 @@
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
+#include <linux/gpio.h>
gpiod interface is also supported for platform devices. Just request
it the same way as for DT. Read section "Platform Data" in this
file: Documentation/gpio/board.txt

-- Sebastian

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help