commit | 1ca510b0ea6da1a4ff3a385f0613e045f670304e | [log] [tgz] |
---|---|---|
author | Cristina Opriceana <cristina.opriceana@gmail.com> | Wed Apr 01 18:50:17 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Apr 02 10:27:39 2015 +0200 |
tree | b7e58e65e0c1f5b433cf8d1d22a496e1af7013bf | |
parent | c471c989addf4d806c62ece60d6cfd6d9ad50c95 [diff] |
iio: light: ltr501: Powerdown device on error Power down device when an error occurs in order to avoid wasting power. Move powerdown function up to be seen by the new call and align parameters for the ltr501_write_contr() call. Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>