]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: accel: bma400: Replace bit shifts with FIELD_PREP() and FIELD_GET()
authorAkshay Jindal <akshayaj.lkd@gmail.com>
Sun, 12 Oct 2025 18:06:11 +0000 (23:36 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Oct 2025 10:59:23 +0000 (11:59 +0100)
commit1a7a6c5db6366c29f687796c75ef5bd00e4921a2
tree3003f67eb633f4d783cd27af57cb7d12a853d761
parente03d213848b045aa370af57da559b49b5ab3c966
iio: accel: bma400: Replace bit shifts with FIELD_PREP() and FIELD_GET()

set_* functions involve left shift of param values into respective
register fields before writing to register. Similarly get_* functions
involve right shift to extract values from the respective bit fields.
Replace these explicit shifting statements with standard kernel style
macros FIELD_GET() and FIELD_PREP().

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