[Gta04-owner] QtMoko patch to show pressure from BMP085 device
christoph.mair at gmail.com
Wed May 30 10:28:49 CEST 2012
On Wed, May 30, 2012 at 10:25 AM, Neil Jerram <neil at ossau.homelinux.net> wrote:
> NeilBrown <neilb at suse.de> writes:
>> On Tue, 29 May 2012 18:49:54 +0200 Neil Jerram <neil at ossau.homelinux.net>
>>> Sure, makes sense. (Do you have a trick for checking all sysfs paths when
>>> moving to a new kernel? Maybe just "grep -r /sys *"?)
>> Try to avoid using paths that start /sys/devices.
>> Look for a link from /sys/class/ instead. Or maybe /sys/bus/. It is more
>> likely to be stable. And shorter.
> Thanks, I hadn't heard that before.
> In the particular case of BMP085, though, there's unfortunately only
> a /sys/devices path:
> root at neo:~# find /sys -name "*pressure*"
> root at neo:~#
There should be at least be a /sys/bus/i2c/devices/2-0077/.. (or
similar) path too.
More information about the Gta04-owner