From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH v3 2/2] Input: soc_button_array - Add support for newer surface devices Date: Sun, 28 Jul 2019 13:01:38 +0300 Message-ID: <20190728100138.GC775@penguin> References: <20190720150511.95076-1-luzmaximilian@gmail.com> <20190720150511.95076-3-luzmaximilian@gmail.com> <20190727091443.GC795@penguin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Maximilian Luz Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org, Hans de Goede , Chen Yu , Darren Hart , Andy Shevchenko , Benjamin Tissoires List-Id: linux-input@vger.kernel.org On Sat, Jul 27, 2019 at 02:01:26PM +0200, Maximilian Luz wrote: > On 7/27/19 11:14 AM, Dmitry Torokhov wrote: > > On Sat, Jul 20, 2019 at 05:05:11PM +0200, Maximilian Luz wrote: > > > - > > > - error = gpiod_count(dev, NULL); > > > - if (error < 0) { > > > - dev_dbg(dev, "no GPIO attached, ignoring...\n"); > > > - return -ENODEV; > > > > I do not think we need to move this into individual "check" functions. > > It is needed in all cases so we should keep it here. > > > > How about version below? > > Makes sense, looks good to me! OK, great, applied. -- Dmitry