iio:ad5064: Initialize register cache correctly
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 1 Mar 2013 13:07:00 +0000 (13:07 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Mar 2013 16:29:14 +0000 (16:29 +0000)
commitf77ae9d8fd4b8ed984f33e996c62f2dfd9f73b37
tree45f529914fb1397d2dc6fd9b39527741c49209bf
parentc5ef717a774b326a6708e2e14ddf9957b619d5c4
iio:ad5064: Initialize register cache correctly

Initialize the register cache to the proper mid-scale value based on the
resolution of the device.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5064.c