From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755301AbbITESc (ORCPT ); Sun, 20 Sep 2015 00:18:32 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35810 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755077AbbITES3 (ORCPT ); Sun, 20 Sep 2015 00:18:29 -0400 Date: Sun, 20 Sep 2015 05:18:25 +0100 From: Lee Jones To: Qipeng Zha Cc: linux-kernel@vger.kernel.org, broonie@kernel.org, samuel.ortiz@intel.com Subject: Re: [PATCH v6 1/3] regmap: add generic macro to define regmap_irq Message-ID: <20150920041825.GO3039@x1> References: <1442248759-124102-1-git-send-email-qipeng.zha@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1442248759-124102-1-git-send-email-qipeng.zha@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 Tue, 15 Sep 2015, Qipeng Zha wrote: > Add REGMAP_IRQ_REG macro in regmap.h to define regmap_irq > structure easily for other driver module. Couple of people requested this now: Acked-by: Lee Jones > Signed-off-by: Qipeng Zha > --- > include/linux/regmap.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/linux/regmap.h b/include/linux/regmap.h > index 116655d..0d1ee0a 100644 > --- a/include/linux/regmap.h > +++ b/include/linux/regmap.h > @@ -517,6 +517,9 @@ struct regmap_irq { > unsigned int mask; > }; > > +#define REGMAP_IRQ_REG(_irq, _off, _mask) \ > + [_irq] = { .reg_offset = (_off), .mask = (_mask) } > + > /** > * Description of a generic regmap irq_chip. This is not intended to > * handle every possible interrupt controller, but it should handle a -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog