OSDN Git Service

STPK-1429 Support floating point sampling rates
authorPatrick Porlan <patrick.porlan@intel.com>
Thu, 19 Jun 2014 13:08:12 +0000 (15:08 +0200)
committersuyyala <sridhar.uyyala@intel.com>
Thu, 19 Jun 2014 16:51:40 +0000 (09:51 -0700)
commit5e5841987c50d6a8a0c1a4f418199996cdc31abd
tree29cec2d68d649133f4ad98ef1c71f6f0746f76a9
parentfe7a4ab7b39ddb029881bc22193367082f033f8f
STPK-1429 Support floating point sampling rates

The Kionix accelerometer found on the MRD 7 advertises
support for 6.25 and 12.5 Hz, so open up a little the
scope of what we consider a valid sampling rate.

Some %f specifications were replaced by %g because %f
shows zero digits in the style of 3.140000, and some
sysfs writes would not be accepted because of this format.

Issue: STPK-1429

Change-Id: I35379aec4d3f03bfdf27a17d192ebc0dfbef3441
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
common.h
control.c
utils.c
utils.h