diff options
Diffstat (limited to 'drivers/hid/hid-mcp2221.c')
-rw-r--r-- | drivers/hid/hid-mcp2221.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-mcp2221.c b/drivers/hid/hid-mcp2221.c index b3eaf170f0ec..3014932c8cef 100644 --- a/drivers/hid/hid-mcp2221.c +++ b/drivers/hid/hid-mcp2221.c @@ -950,7 +950,7 @@ static int mcp2221_read_raw(struct iio_dev *indio_dev, ret = mcp_chk_last_cmd_status(mcp); if (!ret) { - *val = le16_to_cpu(mcp->adc_values[channel->address]); + *val = le16_to_cpu((__force __le16) mcp->adc_values[channel->address]); if (*val >= BIT(10)) ret = -EINVAL; else |