summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAkshay Jindal <akshayaj.lkd@gmail.com>2025-10-12 23:36:10 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-10-19 11:59:23 +0100
commite03d213848b045aa370af57da559b49b5ab3c966 (patch)
tree535a36fc24087b1e45f5c7c5684b7a7834ca6073 /include/linux/i2c/git@git.tavy.me:linux.git
parenta2ef0af1923ba3fa0b46adfd8fb01d5920906980 (diff)
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/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions