public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Cc: cbou@mail.ru,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Using POWER or APM for battery handling
Date: Fri, 27 Mar 2009 22:29:47 +0300	[thread overview]
Message-ID: <20090327192947.GA13609@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20090327202406.60885d4a.kristoffer.ericson@gmail.com>

Hello Kristoffer,

On Fri, Mar 27, 2009 at 08:24:06PM +0100, Kristoffer Ericson wrote:
> Hey Anton,
> 
> My machines (HP Jornada 600-series and HP Jornada 700-series) both
> rely on batteries for power. Now, in the past it has all
> been handled by an APM_EMULATION driver that
> essentially detects the current state (loading YES/NO, 
> POWER_LEFT, ESTIMATED TIME LEFT,...) and adjusts
> the state of the machine.
> 
> My question is should I port this to instead
> use the power class (drivers/power) or not.

The driver is already there:
drivers/power/apm_power.c

So all you need is Jornada driver for the power supply class,
and then apm_power.c will work for your battery driver.

Feel free to ask if there is anything still not clear.

Thanks,

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

  reply	other threads:[~2009-03-27 19:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27 19:24 Using POWER or APM for battery handling Kristoffer Ericson
2009-03-27 19:29 ` Anton Vorontsov [this message]
2009-03-27 20:41   ` Kristoffer Ericson
2009-03-27 20:55     ` Anton Vorontsov
2009-03-27 20:59       ` Kristoffer Ericson

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=20090327192947.GA13609@oksana.dev.rtsoft.ru \
    --to=avorontsov@ru.mvista.com \
    --cc=cbou@mail.ru \
    --cc=kristoffer.ericson@gmail.com \
    --cc=linux-kernel@vger.kernel.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