Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754225AbbFVQlo (ORCPT ); Mon, 22 Jun 2015 12:41:44 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:56868 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbbFVQl1 (ORCPT ); Mon, 22 Jun 2015 12:41:27 -0400 Date: Mon, 22 Jun 2015 09:41:24 -0700 From: Guenter Roeck To: Vivien Didelot Cc: linux-watchdog@vger.kernel.org, Wim Van Sebroeck , linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com Subject: Re: [v2,1/3] watchdog: max63xx: dynamically allocate device Message-ID: <20150622164124.GA837@roeck-us.net> References: <1434581940-15086-1-git-send-email-vivien.didelot@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434581940-15086-1-git-send-email-vivien.didelot@savoirfairelinux.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1258 Lines: 37 Hi Vivien, On Wed, Jun 17, 2015 at 06:58:58PM -0400, Vivien Didelot wrote: > This patch removes the static watchdog device for a new max63xx_wdt data > structure, and constifies the max63xx_timeout data. > > The new structure contains pointers to pin access routines, which > abstracts mmap-specific code. This will ease future accesses like GPIO. > > Signed-off-by: Vivien Didelot Looks good. Minor nitpick below, but not worth a new version. Reviewed-by: Guenter Roeck > --- > drivers/watchdog/max63xx_wdt.c | 170 +++++++++++++++++++++++++---------------- > 1 file changed, 104 insertions(+), 66 deletions(-) > > diff --git a/drivers/watchdog/max63xx_wdt.c b/drivers/watchdog/max63xx_wdt.c > index b3a1130..3f7e8d5 100644 > --- a/drivers/watchdog/max63xx_wdt.c > +++ b/drivers/watchdog/max63xx_wdt.c > @@ -39,10 +39,22 @@ static bool nowayout = WATCHDOG_NOWAYOUT; > #define MAX6369_WDSET (7 << 0) > #define MAX6369_WDI (1 << 3) > > -static DEFINE_SPINLOCK(io_lock); > +#define MAX6369_WDSET_DISABLED 3 I would have used a tab before '3'. Thanks, Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/