mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hungyu Lin <dennylin0707@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] iio: magnetometer: bmc150: use FIELD_PREP and FIELD_GET helpers
Date: Tue, 9 Jun 2026 21:45:50 -0700	[thread overview]
Message-ID: <CAGEkeHcqb7SAWVbx6-R0dXgOvy0mXBWvLso1aTo-wAG3002uJA@mail.gmail.com> (raw)
In-Reply-To: <20260610042418.90308-3-dennylin0707@gmail.com>

> -       odr_val = (reg_val & BMC150_MAGN_MASK_ODR) >> BMC150_MAGN_SHIFT_ODR;
> +
> +       odr_val = FIELD_GET(BMC150_MAGN_MASK_ODR, reg_val);

Thanks Andy.

The blank line issue was inadvertently retained in v4 and
has been fixed in v5.

Thanks,
Hungyu

  reply	other threads:[~2026-06-10  4:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10  4:24 [PATCH v4 0/2] " Hungyu Lin
2026-06-10  4:24 ` [PATCH 1/2] iio: magnetometer: bmc150: sort includes Hungyu Lin
2026-06-10 10:55   ` Andy Shevchenko
2026-06-10  4:24 ` [PATCH 2/2] iio: magnetometer: bmc150: use FIELD_PREP and FIELD_GET helpers Hungyu Lin
2026-06-10  4:45   ` Hungyu Lin [this message]
2026-06-10 10:56   ` Andy Shevchenko
2026-06-10 13:58     ` Hungyu Lin
2026-06-10 10:57 ` [PATCH v4 0/2] " Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGEkeHcqb7SAWVbx6-R0dXgOvy0mXBWvLso1aTo-wAG3002uJA@mail.gmail.com \
    --to=dennylin0707@gmail.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®