[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100831111120.GE20849@rakim.wolfsonmicro.main>
Date: Tue, 31 Aug 2010 12:11:21 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Onkalo Samu <samu.p.onkalo@...ia.com>
Cc: ext Alan Cox <alan@...rguk.ukuu.org.uk>,
ext Dmitry Torokhov <dmitry.torokhov@...il.com>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"linux-input@...r.kernel.org" <linux-input@...r.kernel.org>
Subject: Re: [PATCH 1/3] drivers: misc: ak8974 / ami305 magnetometer driver
On Mon, Aug 30, 2010 at 09:55:00AM +0300, Onkalo Samu wrote:
> Misc-char-device + sysfs interface:
> -----------------------------------
> PM related issues can be nicely handled with char device.
> It doesn't matter if there are one or several users. However
> char device with binary data format is not that handy in scripts.
> Same is true for input device.
You could always have a char device with a text mode interface, I guess.
> Do you have any suggestions what could be the best way to handle this?
Not really without knowing more about how the device will be used and
the costs associated with powering it up and down - it's all a question
of tradeoffs depending on things like how fast userspace needs a
response and the expected usage patterns (many accesses in quick
succession, occasional widely spaced accesses...).
--
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