On 3/12/2013 6:08 PM, Rhyland Klein wrote:
> Add irq resources to pass to the charger mfd sub dev so
> the charger can listen for interrupts.
> 
> Signed-off-by: Rhyland Klein <[email protected]>
> ---
> v3:
>  - no changes since v2
> v2:
>  - no changes since v1
> 
>  drivers/mfd/tps65090.c |   10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
> index 98edb5be..88846ae 100644
> --- a/drivers/mfd/tps65090.c
> +++ b/drivers/mfd/tps65090.c
> @@ -56,12 +56,22 @@
>  #define TPS65090_INT2_MASK_OVERLOAD_FET6             6
>  #define TPS65090_INT2_MASK_OVERLOAD_FET7             7
>  
> +static struct resource charger_resources[] = {
> +     {
> +             .start  = TPS65090_IRQ_VAC_STATUS_CHANGE,
> +             .end    = TPS65090_IRQ_VAC_STATUS_CHANGE,
> +             .flags  = IORESOURCE_IRQ,
> +     }
> +};
> +
>  static struct mfd_cell tps65090s[] = {
>       {
>               .name = "tps65090-pmic",
>       },
>       {
>               .name = "tps65090-charger",
> +             .num_resources = ARRAY_SIZE(charger_resources),
> +             .resources = &charger_resources[0],
>       },
>  };
>  
> 

Samuel, Anton merged patches 3 & 4 of this series. Have you had a chance
to review patches 1 & 2 ?

-rhyland

-- 
nvpublic
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to