STPK-1429 Honor maximum rate if reported through sysfs
STPK-1429 Honor maximum rate if reported through sysfs

In case we have a list of supported rates, make sure that we
don't select a higher value than the maximum advertised one.

Issue: STPK-1429

Change-Id: I5fa008966d07b9e38b61dcda87799e510a35dfbf
Signed-off-by: Patrick Porlan <6b7a5b9114e07d350ffba0c179039885a7e82794@intel.com>

01org/android-iio-sensors-hal,01org/android-iio-sensors-hal