From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752744AbbJNIcH (ORCPT ); Wed, 14 Oct 2015 04:32:07 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:33233 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478AbbJNIcD (ORCPT ); Wed, 14 Oct 2015 04:32:03 -0400 Date: Wed, 14 Oct 2015 09:31:59 +0100 From: Lee Jones To: Borun Fu Cc: sameo@linux.intel.com, linux-kernel@vger.kernel.org, fei.yang@intel.com, jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v2] mfd: axp20x: Add a cell for the power button part of the, axp288 PMICs Message-ID: <20151014083159.GG32409@x1> References: <561E0F5A.9080900@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <561E0F5A.9080900@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Oct 2015, Borun Fu wrote: > This patch adds the mfd cell info for axp288 power key device. > > Signed-off-by: Borun Fu > Signed-off-by: Fei Yang > --- > drivers/mfd/axp20x.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) Applied, thanks. > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > index 3f576b7..9842199 100644 > --- a/drivers/mfd/axp20x.c > +++ b/drivers/mfd/axp20x.c > @@ -161,6 +161,21 @@ static struct resource axp22x_pek_resources[] = { > }, > }; > > +static struct resource axp288_power_button_resources[] = { > + { > + .name = "PEK_DBR", > + .start = AXP288_IRQ_POKN, > + .end = AXP288_IRQ_POKN, > + .flags = IORESOURCE_IRQ, > + }, > + { > + .name = "PEK_DBF", > + .start = AXP288_IRQ_POKP, > + .end = AXP288_IRQ_POKP, > + .flags = IORESOURCE_IRQ, > + }, > +}; > + > static struct resource axp288_fuel_gauge_resources[] = { > { > .start = AXP288_IRQ_QWBTU, > @@ -572,6 +587,11 @@ static struct mfd_cell axp288_cells[] = { > .resources = axp288_fuel_gauge_resources, > }, > { > + .name = "axp20x-pek", > + .num_resources = ARRAY_SIZE(axp288_power_button_resources), > + .resources = axp288_power_button_resources, > + }, > + { > .name = "axp288_pmic_acpi", > }, > }; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog