Re: [PATCH] HP mobile data protection system driver

From: Burman Yan
Date: Fri Oct 13 2006 - 12:17:49 EST





From: Dave Jones <davej@xxxxxxxxxx>
To: Jesper Juhl <jesper.juhl@xxxxxxxxx>
CC: Burman Yan <yan_952@xxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Andrey Panin <pazke@xxxxxxxxx>
Subject: Re: [PATCH] HP mobile data protection system driver
Date: Fri, 13 Oct 2006 11:50:20 -0400

Better yet, would be to use the same interface the hdaps driver uses
so that userspace written for one accelerometer works with any hardware.
Having to cope with a dozen different drivers who export in different
places is just silly.


That would probably mean that there is a need for single interface. Making all accelerometers
export to /sys/devices/platform/hdaps sounds wrong to me. It should be a neutral place then.
There aren't that many accelerometers right now as far as I could tell by googling.
There are hdaps, amc (something for MAC I think) and now mdps ;)
Only amc and mdps are 3D - hdaps is 2D, and also amc and mdps in theory support
a free-fall interrupt instead of polling - I just couldn't get the interrupt part to work yet.

I did make the interface as close as I could to hdaps - seem my later post with a new patch.

Yan

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/