public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Thomas Hood <jdthood@mail.com>
Cc: linux-kernel@vger.kernel.org, Stephen Rothwell <sfr@canb.auug.org.au>
Subject: Re: apm.c and multiple battery slots
Date: Sun, 03 Feb 2002 12:01:19 +0000	[thread overview]
Message-ID: <12638.1012737679@redhat.com> (raw)
In-Reply-To: <1012705104.774.4.camel@thanatos>
In-Reply-To: <1012705104.774.4.camel@thanatos>


jdthood@mail.com said:
> > Then we could add one line for each battery slot,
> > indicating <battery status> <battery flag> <battery left % >
> > <remaining time in seconds>

> How about putting each of these lines in a separate proc file?  This
> would avoid changing the format of /proc/apm, which would break
> things.

Please don't add an APM-specific interface for batteries. Look at the other
code which talks to batteries - the ACPI code, SMBus and numerous other
drivers for embedded systems - and design an interface to userspace which
can be used by all of them.

Preferably not in /proc.

--
dwmw2



  parent reply	other threads:[~2002-02-03 12:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-03  2:58 apm.c and multiple battery slots Thomas Hood
2002-02-03  6:53 ` Stevie O
2002-02-03 12:01 ` David Woodhouse [this message]
2002-02-04  2:55 ` APM and APIC -- multiple batteries (was: apm.c and multiple battery slots) Stevie O
2002-02-05 13:54   ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2002-02-02 13:30 apm.c and multiple battery slots Thomas Hood
2002-02-02 21:23 ` Stevie O
2002-02-02  4:58 Stevie O

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=12638.1012737679@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=jdthood@mail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /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