Thread (23 messages) 23 messages, 6 authors, 2026-01-31

Re: [PATCH v2 4/6] iio: amplifiers: ad8366: add device tree support

From: Andy Shevchenko <hidden>
Date: 2026-01-28 12:39:20
Also in: linux-iio, lkml

On Wed, Jan 28, 2026 at 10:23:58AM +0000, Rodrigo Alencar wrote:
On 26/01/28 12:09PM, Andy Shevchenko wrote:
quoted
On Wed, Jan 28, 2026 at 09:55:16AM +0000, Rodrigo Alencar wrote:
...
quoted
So, something like

	put_unaligned_be16((ch_b << 6) | ch_a, &st->deta[0]);

should be better, no? (Note, you would need linux/unaligned.h).
ok, ch_b would have to be u16 and ch_a could be too (for consistency)
Why? u8 should suffice.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help