Skip to content
Commit 3e729974 authored by Archana Patni's avatar Archana Patni Committed by Jonathan Cameron
Browse files

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: default avatarArchana Patni <archana.patni@intel.com>
Signed-off-by: default avatarSubramony Sesha <subramony.sesha@intel.com>
Reviewed-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 758ee467
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment