lkml.org 
[lkml]   [2019]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 2/2] Input: soc_button_array - Add support for newer surface devices
From
Date
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!

Maximilian

\
 
 \ /
  Last update: 2019-07-27 14:05    [W:0.045 / U:5.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site