Re: [PATCH v4] power: bq20z75: devicetree init support

From: Grant Likely
Date: Wed Sep 14 2011 - 15:14:33 EST


On Wed, Sep 14, 2011 at 12:04 PM, Rhyland Klein <rklein@xxxxxxxxxx> wrote:
> Adding support to generate platform data when kernel is configured
> through device tree.
>
> Also adding the binding for the TI bq20z75 fuel gadge and the
> bq20z75 driver.
>
> Signed-off-by: Rhyland Klein <rklein@xxxxxxxxxx>
> ---
>        v2: Fixed typo in binding description
>        v3: Changed to use "ti," for properties
>            Changed to use single gpio entry for battery detect info.
>            Removed unnecessary call to of_match_device.
>        v4: squashed bindings and drivers changes together.
>            fixed case where CONFIG_OF is not selected, to return existing
>            pdata pointer if it exists.

Nit: Personally, I'm much happier when the revision list is above the
--- line so it appears in the linux commit text. That helps when
trying to figure out exactly which posting of a patch got merged.

>
> diff --git a/drivers/power/bq20z75.c b/drivers/power/bq20z75.c
> index 9c5e5be..4c4669e 100644
> --- a/drivers/power/bq20z75.c
> +++ b/drivers/power/bq20z75.c
> @@ -613,6 +613,78 @@ static void bq20z75_delayed_work(struct work_struct *work)
>        }
>  }
>
> +#if defined(CONFIG_OF)
> +#include <linux/of_device.h>
> +static const struct of_device_id bq20z75_dt_ids[] = {
> +       { .compatible = "ti,bq20z75" },
> +       { }
> +};
> +MODULE_DEVICE_TABLE(platform, bq20z75_dt_ids);

MODULE_DEVICE_TABLE(of, ...)

It's not a platform_device_id table.

Otherwise:

Acked-by: Grant Likely <grant.likely@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/