HID: rmi: use put_unaligned_le16() to populate output reports

Open-coded byte shifts for 16-bit integers are verbose and left the
upper page address byte uninitialized when reusing the output buffer.

Use put_unaligned_le16() when packing 16-bit fields into output reports.

Fixes: 9fb6bf02e3ad ("HID: rmi: introduce RMI driver for Synaptics touchpads")
Acked-by: Jiri Kosina <jkosina@suse.com>
Link: https://patch.msgid.link/20261113-hid-rmi-v1-8-afc43d97d766@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 file changed