[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41840b750607270810o3e9fe18epff4d01eceec7dda0@mail.gmail.com>
Date: Thu, 27 Jul 2006 18:10:44 +0300
From: "Shem Multinymous" <multinymous@...il.com>
To: "Pavel Machek" <pavel@...e.cz>
Cc: "Matthew Garrett" <mjg59@...f.ucam.org>, vojtech@...e.cz,
"Len Brown" <len.brown@...el.com>,
"kernel list" <linux-kernel@...r.kernel.org>,
linux-thinkpad@...ux-thinkpad.org
Subject: Re: Generic battery interface
On 7/27/06, Pavel Machek <pavel@...e.cz> wrote:
> Well, in that case probably smapi driver should "hook into" acpi
> driver.
That would be odd, the SMAPI driver has nothing to do with the ACPI
system. I don't think cross-system hooks are very popular...
> Worst case, we would get equivalent of
>
> /sys/class/battery/system_battery_acpi/...
> /sys/class/battery/system_battery_some_clever_vendor_hack/...
>
> with some values common between both of them. I'd say it is still
> better than having vendor_hack in /sys in one format while having acpi
> battery in /proc/acpi in completely different format.
Aye, we need for a consistent interface to common functionality.
How about /sys/class/battery/{acpi,apm,thinkpad}/BAT0?
So that for standard attributes, cat /sys/class/battery/*/BAT0/voltage
gives something reasonable.
Shem
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists