Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754135AbcKROvL (ORCPT ); Fri, 18 Nov 2016 09:51:11 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37510 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753592AbcKROu4 (ORCPT ); Fri, 18 Nov 2016 09:50:56 -0500 Date: Fri, 18 Nov 2016 14:53:53 +0000 From: Lee Jones To: Milo Kim Cc: bcousson@baylibre.com, Tony Lindgren , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robert Nelson Subject: Re: [PATCH v2 5/8] dt-bindings: mfd: Provide human readable defines for TPS65217 interrupts Message-ID: <20161118145353.GE2301@dell.home> References: <20161028123702.21849-1-woogyom.kim@gmail.com> <20161028123702.21849-6-woogyom.kim@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161028123702.21849-6-woogyom.kim@gmail.com> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1857 Lines: 53 On Fri, 28 Oct 2016, Milo Kim wrote: > TPS65217 supports three interrupt sources. This patch enables assigning > each IRQ number in the charger and power button node. Then corresponding > IRQ will be requested by each driver. > > Signed-off-by: Milo Kim > --- > include/dt-bindings/mfd/tps65217.h | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 include/dt-bindings/mfd/tps65217.h > > diff --git a/include/dt-bindings/mfd/tps65217.h b/include/dt-bindings/mfd/tps65217.h > new file mode 100644 > index 0000000..cafb9e6 > --- /dev/null > +++ b/include/dt-bindings/mfd/tps65217.h > @@ -0,0 +1,26 @@ > +/* > + * This header provides macros for TI TPS65217 DT bindings. > + * > + * Copyright (C) 2016 Texas Instruments > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, but > + * WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + * General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License along with > + * this program. If not, see . > + */ > + > +#ifndef __DT_BINDINGS_TPS65217_H__ > +#define __DT_BINDINGS_TPS65217_H__ > + > +#define TPS65217_IRQ_USB 0 > +#define TPS65217_IRQ_AC 1 > +#define TPS65217_IRQ_PB 2 What are "AC" and "PB". Seeing as these are meant to be "human readable", let's make them more human friendly. > +#endif -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog