lkml.org 
[lkml]   [2016]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] iio: mma8452: add support for oversampling ratio
From
Date
Am 2016-04-25 um 14:08 schrieb Martin Kepplinger:
> This adds the following sysfs files according to the iio ABI:
>
> -rw-r--r-- 4096 in_accel_oversampling_ratio
> -r--r--r-- 4096 in_accel_oversampling_ratio_available
>
> Internally, the device knows about 4 different power modes that differ
> in oversampling ratio (and power consumption). We just show the user
> what oversampling ratio(s) is/are available, depending on the current
> frequency.
>
> The referenced table in the datasheets makes it easier to understand.
>
> Signed-off-by: Martin Kepplinger <martink@posteo.de>
> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
> ---
> This is meant to get merged for v4.8 to have time for review and possibly
> testing by others.
>
> thanks,
> martin
>
>
> drivers/iio/accel/mma8452.c | 185 ++++++++++++++++++++++++++++++++++++++------
> 1 file changed, 160 insertions(+), 25 deletions(-)
>

In case this has already been forgotten about, I'd be happy about
reviews. Powersaving is always nice to have after all.

thanks
martin


\
 
 \ /
  Last update: 2016-05-04 14:21    [W:0.062 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site