From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald <pmeerw@pmeerw.net>, linux-iio@vger.kernel.org
Subject: Re: [PATCH 2/2] iio: tmp006: Use GENMASK
Date: Sun, 05 Jul 2015 14:26:18 +0100 [thread overview]
Message-ID: <5599307A.8020102@kernel.org> (raw)
In-Reply-To: <1434923422-17609-2-git-send-email-pmeerw@pmeerw.net>
On 21/06/15 22:50, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git.
Will cause some trivial fuzz when the fix before turns up.
J
> ---
> drivers/iio/temperature/tmp006.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/temperature/tmp006.c b/drivers/iio/temperature/tmp006.c
> index 7a80509..a107087 100644
> --- a/drivers/iio/temperature/tmp006.c
> +++ b/drivers/iio/temperature/tmp006.c
> @@ -36,9 +36,9 @@
> #define TMP006_CONFIG_DRDY_EN BIT(8)
> #define TMP006_CONFIG_DRDY BIT(7)
>
> -#define TMP006_CONFIG_MOD_MASK 0x7000
> +#define TMP006_CONFIG_MOD_MASK GENMASK(14, 12)
>
> -#define TMP006_CONFIG_CR_MASK 0x0e00
> +#define TMP006_CONFIG_CR_MASK GENMASK(11, 9)
> #define TMP006_CONFIG_CR_SHIFT 9
>
> #define MANUFACTURER_MAGIC 0x5449
>
next prev parent reply other threads:[~2015-07-05 13:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-21 21:50 [PATCH 1/2] iio: tmp006: Check channel info on write Peter Meerwald
2015-06-21 21:50 ` [PATCH 2/2] iio: tmp006: Use GENMASK Peter Meerwald
2015-07-05 13:26 ` Jonathan Cameron [this message]
2015-07-05 13:24 ` [PATCH 1/2] iio: tmp006: Check channel info on write Jonathan Cameron
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=5599307A.8020102@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.