OSDN Git Service

iio: adc: stmpe-adc: Cleanup endian type of local variable
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Oct 2019 09:15:41 +0000 (10:15 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Oct 2019 18:49:03 +0000 (19:49 +0100)
commit47f3b26e708b59dcb10eae2db79bf3aeecfdd9e5
treeae2fb8f36a000518ba430b1e47d9ae63d517307b
parent9299b503db31e86d24a67e3074d525c7496e5857
iio: adc: stmpe-adc: Cleanup endian type of local variable

Nothing stops data being of type __be16, which fixes the warning:

CHECK   drivers/iio/adc/stmpe-adc.c
drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16
drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16
drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16
drivers/iio/adc/stmpe-adc.c:202:29: warning: cast to restricted __be16

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: <philippe.schenker@toradex.com>
drivers/iio/adc/stmpe-adc.c