The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] iio: magnetometer: bmc150: simplify member access formatting
@ 2026-06-07 14:21 Hungyu Lin
  2026-06-08 17:50 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Hungyu Lin @ 2026-06-07 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: linux-iio, linux-kernel, David Lechner, Nuno Sá,
	Andy Shevchenko, Hungyu Lin

Keep the structure member dereference on a single line to
improve readability.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
---
 drivers/iio/magnetometer/bmc150_magn.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/magnetometer/bmc150_magn.c b/drivers/iio/magnetometer/bmc150_magn.c
index bf2551988008..d2075a18e6a7 100644
--- a/drivers/iio/magnetometer/bmc150_magn.c
+++ b/drivers/iio/magnetometer/bmc150_magn.c
@@ -311,8 +311,7 @@ static int bmc150_magn_set_odr(struct bmc150_magn_data *data, int val)
 			ret = regmap_update_bits(data->regmap,
 						 BMC150_MAGN_REG_OPMODE_ODR,
 						 BMC150_MAGN_MASK_ODR,
-						 bmc150_magn_samp_freq_table[i].
-						 reg_val <<
+						 bmc150_magn_samp_freq_table[i].reg_val <<
 						 BMC150_MAGN_SHIFT_ODR);
 			if (ret < 0)
 				return ret;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-08 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-07 14:21 [PATCH] iio: magnetometer: bmc150: simplify member access formatting Hungyu Lin
2026-06-08 17:50 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox