commit | d2bc431868a1c3172bb8fa3187a90fa806bba484 | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Thu Apr 30 15:15:47 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Thu May 07 10:42:32 2015 +0100 |
tree | 15da3d0073ac1054623a9ca29510eabaaf3fb4b2 | |
parent | 3337c9ff17948e1879fb06ea722baa9519533e0f [diff] |
iio: st_sensors: make interrupt optional Some sensors such as magnetometers and pressure sensors doesn't have interrupts at all, and thus no DRDY setting applies. Make the assignment of an interrupt optional, and do not call st_sensors_set_drdy_int_pin() if there is no drdy (data ready) pin specified. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>