From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Niestroj Subject: Re: [PATCH v4 4/5] mfd: tps65217: Add power button as subdevice Date: Mon, 22 Aug 2016 12:08:42 +0200 Message-ID: <8a091fa5-3e0a-c3e6-33db-714ab9e7b413@grinn-global.com> References: <20160620105056.25843-1-m.niestroj@grinn-global.com> <20160620105056.25843-5-m.niestroj@grinn-global.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160620105056.25843-5-m.niestroj-z3quKL4iOrmQ6ZAhV5LmOA@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Lee Jones Cc: Tony Lindgren , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Rob Herring , Pawel Moll , linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Grygorii Strashko List-Id: linux-input@vger.kernel.org ping On 20.06.2016 12:50, Marcin Niestroj wrote: > Add tps65217 power buttor subdevice with assigned IRQ resources. > > Signed-off-by: Marcin Niestroj > Acked-by: Lee Jones > --- > Depends on patch 1 in series > > Changes v1 -> v4: none > > drivers/mfd/tps65217.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c > index 41b5d59..57c8741 100644 > --- a/drivers/mfd/tps65217.c > +++ b/drivers/mfd/tps65217.c > @@ -38,6 +38,10 @@ static struct resource charger_resources[] = { > DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"), > }; > > +static struct resource pb_resources[] = { > + DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"), > +}; > + > struct tps65217_irq { > int mask; > int interrupt; > @@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = { > .resources = charger_resources, > .of_compatible = "ti,tps65217-charger", > }, > + { > + .name = "tps65217-pwrbutton", > + .num_resources = ARRAY_SIZE(pb_resources), > + .resources = pb_resources, > + .of_compatible = "ti,tps65217-pwrbutton", > + }, > }; > > static irqreturn_t tps65217_irq_thread(int irq, void *data) > -- Marcin Niestroj -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html