]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: accel: bma400: Reorganize and rename register and field macros
authorAkshay Jindal <akshayaj.lkd@gmail.com>
Sun, 12 Oct 2025 18:06:08 +0000 (23:36 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Oct 2025 10:59:22 +0000 (11:59 +0100)
commit36bf0de9d6ec8f5ce50bdb9f2bd90150c9026d9a
tree85a6adfe8e41da5f4c47679b119eeb5b57d17c59
parent6365d2b988aa6515983b498333d832297418563f
iio: accel: bma400: Reorganize and rename register and field macros

Reorganize register and field macros to improve consistency with the
datasheet and naming style:

- Move field macros next to their corresponding register macros
- Reorder register macros to follow address order from the datasheet
- Rename field macros to include the register name in the macro name
- Add a _REG suffix to register macros where missing
- Add INT_STAT register fields corresponding to used INT_CONFIG fields

No functional changes are intended.

Signed-off-by: Akshay Jindal <akshayaj.lkd@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma400.h
drivers/iio/accel/bma400_core.c