]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: acpi-als: Use a structure for layout of data to push to buffer.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Aug 2025 16:44:26 +0000 (17:44 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 14:49:42 +0000 (15:49 +0100)
commit783efeb58fefb13911a3f47d6e38a32780359f10
treee6c052638cff7e0bedd726fbee31ee0551392a0e
parent8ffc13805971d81e9c605abec8f223d704f0a61a
iio: light: acpi-als: Use a structure for layout of data to push to buffer.

Using a structure makes the padding and alignment rules explicit,
removing the need for a comment.

Also move the storage to the stack as it is only 16 bytes.

Cc: Gwendal Grignou <gwendal@chromium.org>
Link: https://patch.msgid.link/20250802164436.515988-7-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
drivers/iio/light/acpi-als.c