iio: accel: kionix-kx022a: Apply approximate iwyu principles to includes
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Jun 2025 18:36:49 +0000 (19:36 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 14 Jul 2025 18:20:53 +0000 (19:20 +0100)
commit964d6d5f1adc6c8b8b459afcf3050ff1cdde2367
treebc77496f763efd6cb36fa443f14422c81061c86c
parent6098df897d1355a4ae209e84de08697f4a961f38
iio: accel: kionix-kx022a: Apply approximate iwyu principles to includes

Motivated by the W=1 warning about export.h that was introduced this cycle
this is an attempt to apply an approximation of the principles of including
whatever is used in the file directly.

Helped by the include-what-you-use tool.

Reasoning:
- Drop linux/moduleparam.h as completely unused.
- linux/array_size.h for ARRAY_SIZE()
- linux/bitmap.h for for_each_set_bit
- linux/errno.h for error codes.
- linux/export.h for EXPORT_SYMBOL*()
- linux/math64.h for do_div - alternative would be asm/div64.h
- linux/minmax.h for min()
- linux/sysfs.h for sysfs_emit()
- linux/time64.h for USEC_PER_MSEC
- linux/iio/buffer.h for iio_push_to_buffers_with_timestamp()
- asm/byteorder.h for le16_to_cpu()

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250629183649.184479-1-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kionix-kx022a.c