public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] power-supply: Add function to return system-wide power state
Date: Mon, 1 Sep 2008 03:14:19 +0400	[thread overview]
Message-ID: <20080831231419.GA31902@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20080826203327.GA26691@srcf.ucam.org>

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

      parent reply	other threads:[~2008-08-31 23:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080826200849.GA26114@srcf.ucam.org>
2008-08-26 20:09 ` [PATCH] power-supply: Add function to return system-wide power state Matthew Garrett
2008-08-26 20:25   ` Anton Vorontsov
2008-08-26 20:33     ` Matthew Garrett
2008-08-26 21:10       ` Anton Vorontsov
2008-08-31 23:14       ` Anton Vorontsov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080831231419.GA31902@oksana.dev.rtsoft.ru \
    --to=avorontsov@ru.mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox