staging:iio:dac:ad5791: Use correct DAC bit-size
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Oct 2011 15:47:49 +0000 (17:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Oct 2011 20:57:00 +0000 (13:57 -0700)
commit021c0a381c5c1ae457bb9316669736d2ec66f972
treee7849d7c6e4332c5f83354a5ba8bc8afa3b7a6a8
parent1b992320775691ba0124bd37c5fffe16172743cd
staging:iio:dac:ad5791: Use correct DAC bit-size

Commit c5b99396 ("staging:iio:dac:ad5791 chan spec conversion.") introduced a
small bug, using storagebits instead of realbits throughout the driver, which
causes the driver to work incorrectly. This patch fixes it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/dac/ad5791.c