Staging: iio: fix endian conversion in ad7298_scan_direct()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 22 Nov 2011 07:39:15 +0000 (10:39 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:55:38 +0000 (16:55 -0800)
commitc1a752883dda6287b075215e419a77359f33edff
treec2fff950723f16d051056fd83e586f0d7c5f7201
parent5ae8f440909dc7fddccf7f408adbacf308049691
Staging: iio: fix endian conversion in ad7298_scan_direct()

"tmp" is used to store the output from cpu_to_be16() so it should be
a __be16 bit type.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7298_core.c