commit | 423ad0c405d87868bd1ab19e8b503e6a41c86caf | [log] [tgz] |
---|---|---|
author | Hartmut Knaack <knaack.h@gmx.de> | Thu Jul 09 23:51:30 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jul 19 14:54:45 2015 +0100 |
tree | 0221c5107a5f4e118aacdab0f96b976f1970ee14 | |
parent | 037e966f2d63896129220112644f32962af6d115 [diff] |
iio:light:stk3310: make endianness independent of host Data is stored in the device in be16 format. Make use of be16_to_cpu and cpu_to_be16 to have correct endianness on any host architecture. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Reviewed-by: Tiberiu Breana <tiberiu.a.breana@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>