[PATCH] lis302dl-debug.patch: /sys debug files for the accelerometers

Andy Green andy at openmoko.com
Sun Oct 5 18:14:27 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Debug support for lis302dl. Allows lis302dl registers to be displayed
| and modified in the /sys filesystem. Can be useful during development,
| but is obviously in an end-user system.

| +config INPUT_LIS302DL_DEBUG

There's already a "dump" sysfs, doesn't it cover this enough?

These /sys guys are actually mapping direct to selected registers, you
have to read the datasheet to understand what CTRL1 meaning is for
example, seems to me you might as well get the full dump and pick out
the interesting ones.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjo59wACgkQOjLpvpq7dMoXKgCfYmfXnGz0KY0tUF1sN78XkGCo
u0AAoJB3qlIGNJ/VerOZSsNLTSxjRCWF
=xg1J
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list