From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1174726AbdDYHPy (ORCPT ); Tue, 25 Apr 2017 03:15:54 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:35956 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933577AbdDYHPq (ORCPT ); Tue, 25 Apr 2017 03:15:46 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Geert Uytterhoeven Date: Tue, 25 Apr 2017 09:15:44 +0200 X-Google-Sender-Auth: BQW2i71YAWNdvwHjZOKFikgnUTA Message-ID: Subject: Re: [PATCH v2 2/4] gpio - Add EXAR XRA1403 SPI GPIO expander driver To: zoobab@gmail.com Cc: Linus Walleij , Nandor Han , Greg KH , "David S. Miller" , 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 Hi Benjamin, On Tue, Apr 25, 2017 at 9:07 AM, Benjamin Henrion wrote: > On Mon, Apr 24, 2017 at 3:47 PM, Linus Walleij wrote: >> 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. > > I doubt you will be able to convince the majority of people toggling > GPIOs via a simple shell script to switch to write a complex C > program. Not to mention cross compilation and the libraries > dependencies here. > > Is there some good cli tools to access the new char device? If they > are shipped with most distros, that would reduce the pain. https://github.com/brgl/libgpiod A bit early to expect it to be shipped with all distros, though. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds