[PATCH v5 0/2] iio: magnetometer: bmc150: use FIELD_PREP and FIELD_GET helpers
From: Hungyu Lin
Date: Wed Jun 10 2026 - 00:40:11 EST
v5:
- Remove the extra blank line in bmc150_magn_get_odr()
that was inadvertently retained in v4
v4:
- Split include sorting into a separate prerequisite patch
v3:
- Add missing include <linux/bitfield.h>
v2:
- Use FIELD_PREP() and FIELD_GET() helpers as suggested by
Jonathan Cameron
- Simplify bmc150_magn_set_odr() by returning directly from
the matching table entry
Hungyu Lin (2):
iio: magnetometer: bmc150: sort includes
iio: magnetometer: bmc150: use FIELD_PREP and FIELD_GET helpers
drivers/iio/magnetometer/bmc150_magn.c | 49 ++++++++++++--------------
1 file changed, 23 insertions(+), 26 deletions(-)
--
2.34.1