Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1221777 > unrolled thread

Re: [PATCH] power: bq24261_charger: Add support for TI BQ24261 charger

Started byAlexey Klimov <klimov.linux@gmail.com>
First post2015-09-10 00:50 +0200
Last post2015-09-10 00:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Re: [PATCH] power: bq24261_charger: Add support for TI BQ24261 charger Alexey Klimov <klimov.linux@gmail.com> - 2015-09-10 00:50 +0200

#1221777 — Re: [PATCH] power: bq24261_charger: Add support for TI BQ24261 charger

FromAlexey Klimov <klimov.linux@gmail.com>
Date2015-09-10 00:50 +0200
SubjectRe: [PATCH] power: bq24261_charger: Add support for TI BQ24261 charger
Message-ID<q6WlI-8l1-3@gated-at.bofh.it>
Hi Ramakrishna,

On Sun, Sep 6, 2015 at 8:23 PM, Ramakrishna Pallala
<ramakrishna.pallala@intel.com> wrote:
> Add new charger driver support for BQ24261 charger IC.
>
> BQ24261 charger driver relies on extcon notifications to get the
> charger cable type and based on that it will set the charging parameters.
>
> Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
> Signed-off-by: Jennt TC <jenny.tc@intel.com>
> ---
>  .../devicetree/bindings/power/bq24261.txt          |   37 +
>  drivers/power/Kconfig                              |    6 +
>  drivers/power/Makefile                             |    1 +
>  drivers/power/bq24261_charger.c                    | 1208 ++++++++++++++++++++

[..]

> +static int bq24261_probe(struct i2c_client *client,
> +                        const struct i2c_device_id *id)
> +{
> +       struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
> +       struct power_supply_config charger_cfg = {};
> +       struct bq24261_charger *chip;
> +       int ret;
> +       enum bq2426x_model model;
> +
> +       adapter = to_i2c_adapter(client->dev.parent);

Please also check if you really need to call to_i2c_adapter() twice.

-- 
Best regards, Klimov Alexey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web