Re: [PATCH 3/4] liss331d1: accelerometer driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neil Brown
Date: Wednesday, April 14, 2010 - 4:05 pm

On Thu, 15 Apr 2010 00:34:29 +0200
Daniel Mack <daniel@caiaq.de> wrote:


The Openmoko Freerunner has as lis302D which is an SPI version of a very
similar device, so making the one driver work on that was well would be nice
if possible.

The lis302d can detect threshold crossings and taps as well as simple
orientation and I found it useful to include support for those in the driver
as well.
In particular:
 1/ I allowed the 'data_rate' that was programmed to be any number (including 
    fractions and 0) and the driver would report at that rate, using a timer
    for rates below 50Hz.
    When the app is only interested in long-term change, this can
    significantly reduce the amount of data that has to be handled by
    userspace.

 2/ I allowed a 'threshold' to be set so that changes bigger than that get
    notified promptly even if that is faster than the requested data rate

 3/ I allowed taps to be detected and reported as BTN_X BTN_Y and BTN_Z
    input events.

Would it be sensible to include that support in this driver?  The
LIS331DL seem to have the same threshold and tap support.

NeilBrown




--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] Various intel small device drivers, Alan Cox, (Wed Apr 14, 5:51 am)
[PATCH 2/4] isl29020: ambient light sensor, Alan Cox, (Wed Apr 14, 5:51 am)
[PATCH 3/4] liss331d1: accelerometer driver, Alan Cox, (Wed Apr 14, 5:52 am)
[PATCH 4/4] emc1403: thermal sensor support, Alan Cox, (Wed Apr 14, 5:52 am)
Re: [PATCH 0/4] Various intel small device drivers, Jean Delvare, (Wed Apr 14, 6:30 am)
Re: [PATCH 1/4] hmc6352: Add driver for the HMC6352 compass, Jonathan Cameron, (Wed Apr 14, 6:48 am)
Re: [PATCH 0/4] Various intel small device drivers, Jonathan Cameron, (Wed Apr 14, 6:55 am)
Re: [PATCH 1/4] hmc6352: Add driver for the HMC6352 compass, Jonathan Cameron, (Wed Apr 14, 7:51 am)
Re: [PATCH 1/4] hmc6352: Add driver for the HMC6352 compass, Jonathan Cameron, (Wed Apr 14, 9:39 am)
isl29020: ALS driver as misc device, Alan Cox, (Wed Apr 14, 9:56 am)
Re: isl29020: ALS driver as misc device, Greg KH, (Wed Apr 14, 10:01 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Éric Piel, (Wed Apr 14, 3:12 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Daniel Mack, (Wed Apr 14, 3:34 pm)
Re: [PATCH 2/4] isl29020: ambient light sensor, Alan Cox, (Wed Apr 14, 3:35 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Alan Cox, (Wed Apr 14, 3:37 pm)
Re: [PATCH 2/4] isl29020: ambient light sensor, Daniel Mack, (Wed Apr 14, 3:45 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Neil Brown, (Wed Apr 14, 4:05 pm)
Re: [PATCH 2/4] isl29020: ambient light sensor, Daniel Mack, (Wed Apr 14, 11:20 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Éric Piel, (Thu Apr 15, 2:47 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Alan Cox, (Thu Apr 15, 3:02 am)
Re: isl29020: ALS driver as misc device, Jonathan Cameron, (Thu Apr 15, 3:09 am)
Re: [PATCH 2/4] isl29020: ambient light sensor, Jonathan Cameron, (Thu Apr 15, 3:15 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Jonathan Cameron, (Thu Apr 15, 3:28 am)
Re: isl29020: ALS driver as misc device, Alan Cox, (Thu Apr 15, 4:17 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Pavel Machek, (Thu Apr 15, 12:12 pm)
Re: isl29020: ALS driver as misc device, Jonathan Cameron, (Mon Apr 26, 3:59 am)