diff options
author | 2019-10-13 11:26:00 +0100 | |
---|---|---|
committer | 2019-10-18 19:57:47 +0100 | |
commit | d2080a87a376d5f3f1e0efbc94a8c3c7b24d0a31 (patch) | |
tree | 0c950d096fc7e776c88dcf9d3f038ec9cdf11eb8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: pressure: bmp280 endian tidy ups (diff) | |
download | linux-dev-d2080a87a376d5f3f1e0efbc94a8c3c7b24d0a31.tar.xz linux-dev-d2080a87a376d5f3f1e0efbc94a8c3c7b24d0a31.zip |
iio: proximity: pulsedlight v2: Tidy up an endian issue
Sparse identified the following
CHECK drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16
This cleans up by adding a local variable to hold the value whilst
it is __be16 before applying endian converstion into eventual destination.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions