diff options
| author | Akshay Jindal <akshayaj.lkd@gmail.com> | 2025-10-12 21:06:10 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-10-19 13:59:23 +0300 |
| commit | e03d213848b045aa370af57da559b49b5ab3c966 (patch) | |
| tree | 535a36fc24087b1e45f5c7c5684b7a7834ca6073 /include/linux/debugobjects.h | |
| parent | a2ef0af1923ba3fa0b46adfd8fb01d5920906980 (diff) | |
| download | linux-e03d213848b045aa370af57da559b49b5ab3c966.tar.xz | |
iio: accel: bma400: Use index-based register addressing and lookup
Introduce formula-based macros to compute GEN INTR configuration register
addresses from the interrupt number and register index. This reduces the
need for 22 explicit register macros to three base definitions.
Add a centralized lookup table keyed by IIO event direction and replace
get_gen_config_reg() with a helper integrated with this table.
Apply these changes across the affected callbacks to ensure consistent
access to generic interrupt registers.
No functional changes are intended.
Signed-off-by: Akshay Jindal <akshayaj.lkd@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
