Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1169335AbdDXNrW (ORCPT ); Mon, 24 Apr 2017 09:47:22 -0400 Received: from mail-it0-f47.google.com ([209.85.214.47]:36378 "EHLO mail-it0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758374AbdDXNrM (ORCPT ); Mon, 24 Apr 2017 09:47:12 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Linus Walleij Date: Mon, 24 Apr 2017 15:47:10 +0200 Message-ID: Subject: Re: [PATCH v2 2/4] gpio - Add EXAR XRA1403 SPI GPIO expander driver To: Nandor Han Cc: Greg KH , "David S. Miller" , Geert Uytterhoeven , Mauro Carvalho Chehab , Daniel Vetter , Alexandre Courbot , Rob Herring , Mark Rutland , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Semi Malinen 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: 1123 Lines: 43 On Thu, Apr 13, 2017 at 12:27 PM, Nandor Han wrote: > This is a simple driver that provides a /sys/class/gpio > interface for controlling and configuring the GPIO lines. > It does not provide support for chip select or interrupts. > > Signed-off-by: Nandor Han > Signed-off-by: Semi Malinen I almost want to make the driver depend on !GPIO_SYSFS because of this commit message. DO NOT USE OR ENCOURAGE THE USE OF THE GPIO SYSFS INTERFACE. Use the character device. Use the example in tools/gpio/* as a guideline and testbed. Use libgpiod as a rich userspace. And the commit message should state that this is a driver for such and such Exar hardware instead. Thanks. > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include You are missing #include and that is why the build robot is complaining. Yours, Linus Walleij