Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753650AbbFVUn4 (ORCPT ); Mon, 22 Jun 2015 16:43:56 -0400 Received: from mail.savoirfairelinux.com ([209.172.62.77]:55728 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbbFVUns (ORCPT ); Mon, 22 Jun 2015 16:43:48 -0400 Date: Mon, 22 Jun 2015 16:43:43 -0400 (EDT) From: Vivien Didelot To: Guenter Roeck Cc: linux-watchdog , Wim Van Sebroeck , linux-kernel , kernel Message-ID: <1645175105.110998.1435005823701.JavaMail.zimbra@savoirfairelinux.com> In-Reply-To: <20150622165327.GA1189@roeck-us.net> References: <1434581940-15086-2-git-send-email-vivien.didelot@savoirfairelinux.com> <20150622165327.GA1189@roeck-us.net> Subject: Re: [v2,2/3] watchdog: max63xx: add GPIO support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - FF38 (Linux)/8.6.0_GA_1153) Thread-Topic: watchdog: max63xx: add GPIO support Thread-Index: wFnpDrOsYOy8+OmAAH3YU3Jm5DDCFA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 24 Hi Guenter, On Jun 22, 2015, at 12:53 PM, Guenter Roeck linux@roeck-us.net wrote: > On Wed, Jun 17, 2015 at 06:58:59PM -0400, Vivien Didelot wrote: >> Introduce a new struct max63xx_platform_data to support MAX63xx watchdog >> chips connected via GPIO. A platform code can fill this structure with >> GPIO numbers for WDI and WDSET pins to enable GPIO support in the code. >> >> The driver takes care of requesting and releasing the GPIOs. >> >> Signed-off-by: Vivien Didelot > > would it be possible to use gpiod functions ? It might be, but I never played with it yet though. I'm using integer-based GPIOs from a TCA6424 on an x86 platform (no Device Tree). Is it ok to keep max63xx_gpio_{ping,set} for legacy GPIOs, and let someone add max63xx_gpiod_{ping,set} if there is a need? Thanks, -v -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/