linux/drivers/iio/common/hid-sensors
Archana Patni 3e729974d6 iio: hid-sensors: Set default unit of measure for report interval
For PROP_REPORT_INTERVAL, the spec does not mandate the presence
of the report interval unit in the feature report and expects the
default unit of measure to be used as milliseconds.

Currently, when the unit is not present, it gets set as zero leading
to issues in sampling frequency.

This patch sets the unit of measure to the default unit if it
is not defined by firmware.

Signed-off-by: Archana Patni <archana.patni@intel.com>
Signed-off-by: Subramony Sesha <subramony.sesha@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-05-10 11:45:02 +01:00
..
hid-sensor-attributes.c iio: hid-sensors: Set default unit of measure for report interval 2014-05-10 11:45:02 +01:00
hid-sensor-trigger.c iio: hid-sensors: Add API to power on/off 2014-05-05 10:59:49 +01:00
hid-sensor-trigger.h iio: hid-sensors: Add API to power on/off 2014-05-05 10:59:49 +01:00
Kconfig iio: hid-sensors: Fix power and report state 2013-12-02 21:05:32 +00:00
Makefile iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00