]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging:iio:dac:ad5446: Return cached value for 'raw' attribute
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 25 Apr 2012 07:45:00 +0000 (09:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 17:57:20 +0000 (10:57 -0700)
commit5e06bdfb46e8b96bdde1f306d3fadff2d6a2ae77
tree82280d0715b5bbec043ad68c2b2a83db48676681
parentcae329e04ac1f187338d0febd4e1ddf81db582cf
staging:iio:dac:ad5446: Return cached value for 'raw' attribute

We can not read back the value from the device, but we cache the value anyway so
we might as well return the cached value instead of an error.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/dac/ad5446.c