Hi,

On Fri, Sep 18, 2015 at 04:39:59PM -0500, Andreas Dannenberg wrote:
> 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

Attachment: signature.asc
Description: Digital signature

Reply via email to