From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752852AbcGaJMm (ORCPT ); Sun, 31 Jul 2016 05:12:42 -0400 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:17312 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbcGaJMh convert rfc822-to-8bit (ORCPT ); Sun, 31 Jul 2016 05:12:37 -0400 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sun, 31 Jul 2016 11:12:35 +0200 X-ME-IP: 86.199.194.242 From: Robert Jarzmik To: Joe Perches Cc: Daniel Mack , Haojian Zhuang , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ARM: pxa: fix GPIO double shifts References: <1469877735-30127-1-git-send-email-robert.jarzmik@free.fr> <1469896245.3998.113.camel@perches.com> X-URL: http://belgarath.falguerolles.org/ Date: Sun, 31 Jul 2016 11:12:32 +0200 In-Reply-To: <1469896245.3998.113.camel@perches.com> (Joe Perches's message of "Sat, 30 Jul 2016 09:30:45 -0700") Message-ID: <8760rmyxvj.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joe Perches writes: > On Sat, 2016-07-30 at 13:22 +0200, Robert Jarzmik wrote: ...zip... > $ git grep -w charger_wakeup > arch/arm/mach-pxa/corgi_pm.c:   .charger_wakeup  = corgi_charger_wakeup, > arch/arm/mach-pxa/sharpsl_pm.c:                 if (sharpsl_pm.machinfo->charger_wakeup() != 0) > arch/arm/mach-pxa/sharpsl_pm.c:         if (sharpsl_pm.machinfo->charger_wakeup()) > arch/arm/mach-pxa/sharpsl_pm.h: unsigned long (*charger_wakeup)(void); > arch/arm/mach-pxa/spitz_pm.c:   .charger_wakeup   = spitz_charger_wakeup, ...zip... > It may be better to change the charger_wakeup callback return > value from unsigned long to bool and modify the other use in > spitz_pm.c  You're most probably right. I'll do that for v3. Cheers. -- Robert