From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965538AbaFQQdt (ORCPT ); Tue, 17 Jun 2014 12:33:49 -0400 Received: from mail-ig0-f175.google.com ([209.85.213.175]:49340 "EHLO mail-ig0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965093AbaFQQdq (ORCPT ); Tue, 17 Jun 2014 12:33:46 -0400 Date: Tue, 17 Jun 2014 17:33:39 +0100 From: Lee Jones To: Keerthy Cc: linux-omap@vger.kernel.org, lgirdwood@gmail.com, broonie@kernel.org, linux-kernel@vger.kernel.org, sameo@linux.intel.com Subject: Re: [PATCH 6/9] mfd: palmas: shift the palmas_sleep_requestor_info structure definition to the header file Message-ID: <20140617163339.GQ29841@lee--X1> References: <1401272423-25761-1-git-send-email-j-keerthy@ti.com> <1401272423-25761-7-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1401272423-25761-7-git-send-email-j-keerthy@ti.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, 28 May 2014, Keerthy wrote: > shift the palmas_sleep_requestor_info structure definition to the header file. > > Signed-off-by: Keerthy > --- > drivers/mfd/palmas.c | 10 ---------- > include/linux/mfd/palmas.h | 10 ++++++++++ > 2 files changed, 10 insertions(+), 10 deletions(-) Acked-by: Lee Jones > diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c > index 485d755..f1f31d5 100644 > --- a/drivers/mfd/palmas.c > +++ b/drivers/mfd/palmas.c > @@ -25,16 +25,6 @@ > #include > #include > > -#define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENABLE1 | \ > - PALMAS_EXT_CONTROL_ENABLE2 | \ > - PALMAS_EXT_CONTROL_NSLEEP) > - > -struct palmas_sleep_requestor_info { > - int id; > - int reg_offset; > - int bit_pos; > -}; > - > #define EXTERNAL_REQUESTOR(_id, _offset, _pos) \ > [PALMAS_EXTERNAL_REQSTR_ID_##_id] = { \ > .id = PALMAS_EXTERNAL_REQSTR_ID_##_id, \ > diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h > index 150a6314..8d68452 100644 > --- a/include/linux/mfd/palmas.h > +++ b/include/linux/mfd/palmas.h > @@ -88,6 +88,16 @@ struct palmas { > u8 pwm_muxed; > }; > > +#define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENABLE1 | \ > + PALMAS_EXT_CONTROL_ENABLE2 | \ > + PALMAS_EXT_CONTROL_NSLEEP) > + > +struct palmas_sleep_requestor_info { > + int id; > + int reg_offset; > + int bit_pos; > +}; > + > struct regs_info { > char *name; > char *sname; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog