Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755529AbYHaXOc (ORCPT ); Sun, 31 Aug 2008 19:14:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751526AbYHaXOX (ORCPT ); Sun, 31 Aug 2008 19:14:23 -0400 Received: from rtsoft3.corbina.net ([85.21.88.6]:5944 "EHLO buildserver.ru.mvista.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751091AbYHaXOX (ORCPT ); Sun, 31 Aug 2008 19:14:23 -0400 Date: Mon, 1 Sep 2008 03:14:19 +0400 From: Anton Vorontsov To: Matthew Garrett Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] power-supply: Add function to return system-wide power state Message-ID: <20080831231419.GA31902@oksana.dev.rtsoft.ru> Reply-To: avorontsov@ru.mvista.com References: <20080826200849.GA26114@srcf.ucam.org> <20080826200959.GB26114@srcf.ucam.org> <20080826202542.GA10090@oksana.dev.rtsoft.ru> <20080826203327.GA26691@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline In-Reply-To: <20080826203327.GA26691@srcf.ucam.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 38 On Tue, Aug 26, 2008 at 09:33:27PM +0100, Matthew Garrett wrote: > Something like this? I just applied it to battery-2.6.git with the following changes: [...] > +int power_supply_is_system_supplied() -() +(void) [...] > +#ifdef CONFIG_POWER_SUPPLY Added || defined(CONFIG_POWER_SUPPLY_MODULE) > +extern int power_supply_is_system_supplied(void); > +#else > +static int power_supply_is_system_supplied(void) { return -ENOSYS; } Added inline keyword, otherwise gcc might warn about defined but not used function. Please test battery-2.6.git tree (or simply next `-next` tree ;-) if everything is okay. Thanks again! -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/