]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: gp2ap020a00f: Use correct types for 16-bit LE data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Feb 2026 03:40:13 +0000 (21:40 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:09:23 +0000 (21:09 +0000)
commitc579a6a7a7454b2de83a1f3841a60fd20ec9ef5c
tree7c940fa95a13b103a37cb5610cf07181f8cc99e6
parentb969e76585e9cc3ce0df52e8290841f132a5ea6f
iio: light: gp2ap020a00f: Use correct types for 16-bit LE data

Instead of using byte arrays and then explicit castings, change
the types of byte arrays to be __le16 and update the endianness
conversions accordingly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/gp2ap020a00f.c