[PATCH 4.9 082/177] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value