Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755304AbdDGJes (ORCPT ); Fri, 7 Apr 2017 05:34:48 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:37161 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753109AbdDGJej (ORCPT ); Fri, 7 Apr 2017 05:34:39 -0400 MIME-Version: 1.0 In-Reply-To: <20170402204244.14216-5-paul@crapouillou.net> References: <20170125185207.23902-2-paul@crapouillou.net> <20170402204244.14216-1-paul@crapouillou.net> <20170402204244.14216-5-paul@crapouillou.net> From: Linus Walleij Date: Fri, 7 Apr 2017 11:34:38 +0200 Message-ID: Subject: Re: [PATCH v4 04/14] GPIO: Add gpio-ingenic driver To: Paul Cercueil Cc: Alexandre Courbot , Rob Herring , Mark Rutland , Ralf Baechle , Boris Brezillon , Thierry Reding , Bartlomiej Zolnierkiewicz , Maarten ter Huurne , Lars-Peter Clausen , Paul Burton , James Hogan , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linux MIPS , "linux-mmc@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "linux-pwm@vger.kernel.org" , "linux-fbdev@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1089 Lines: 35 On Sun, Apr 2, 2017 at 10:42 PM, Paul Cercueil wrote: > This driver handles the GPIOs of all the Ingenic JZ47xx SoCs > currently supported by the upsteam Linux kernel. > > Signed-off-by: Paul Cercueil I guess you saw the Kconfig complaint from the build robot, please fix that so we get silent builds. > v2: Consider it's a new patch. Completely rewritten from v1. > v3: Add missing include and drop semicolon after } > v4: Completely rewritten from v3. I really like v4 :) > +static inline bool gpio_get_value(struct ingenic_gpio_chip *jzgc, u8 offset) Actually the return value should be an int. I know, it is a historical artifact, if we change it we need to change it everywhere. > + /* DO NOT EXPAND THIS: FOR BACKWARD GPIO NUMBERSPACE COMPATIBIBILITY > + * ONLY: WORK TO TRANSITION CONSUMERS TO USE THE GPIO DESCRIPTOR API IN > + * INSTEAD. > + */ > + jzgc->gc.base = cell->id * 32; OK then :) This is merge material. Yours, Linus Walleij