Hi Lars-Peter, thank you very much for your review! >> +int st_sensors_read_axis_data(struct iio_dev *indio_dev, u8 ch_addr, int *data) >> +{ >> + int err; >> + u8 outdata[ST_SENSORS_BYTE_FOR_CHANNEL]; >> + struct st_sensor_data *sdata = iio_priv(indio_dev); >> + >> + err = sdata->tf->read_multiple_byte(&sdata->tb, sdata->dev, >> + ch_addr, ST_SENSORS_BYTE_FOR_CHANNEL, >> + outdata, sdata->multiread_bit); >> + if (err < 0) >> + goto read_error; >> + >> + *data = ((s16)le16_to_cpup((__le16 *)outdata)); > > Either make outdata a __le16 or use get_unaligned_le16. get_unaligned_le16 doesn't do what I have done? Denis-- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html