iio: light: ltr501: Powerdown device on error
authorCristina Opriceana <cristina.opriceana@gmail.com>
Wed, 1 Apr 2015 15:50:17 +0000 (18:50 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2015 08:27:39 +0000 (10:27 +0200)
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>

No differences found