All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald <pmeerw@pmeerw.net>, linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio:tmp006: Prefix #defines with TMP006_
Date: Sat, 18 Apr 2015 20:36:26 +0100	[thread overview]
Message-ID: <5532B23A.7000005@kernel.org> (raw)
In-Reply-To: <1429130378-19941-3-git-send-email-pmeerw@pmeerw.net>

On 15/04/15 21:39, Peter Meerwald wrote:
> just cleanup, no functional change
> 
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
applied.
> ---
>  drivers/iio/temperature/tmp006.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/iio/temperature/tmp006.c b/drivers/iio/temperature/tmp006.c
> index 84a0789..fcc49f8 100644
> --- a/drivers/iio/temperature/tmp006.c
> +++ b/drivers/iio/temperature/tmp006.c
> @@ -41,8 +41,8 @@
>  #define TMP006_CONFIG_CR_MASK 0x0e00
>  #define TMP006_CONFIG_CR_SHIFT 9
>  
> -#define MANUFACTURER_MAGIC 0x5449
> -#define DEVICE_MAGIC 0x0067
> +#define TMP006_MANUFACTURER_MAGIC 0x5449
> +#define TMP006_DEVICE_MAGIC 0x0067
>  
>  struct tmp006_data {
>  	struct i2c_client *client;
> @@ -191,7 +191,7 @@ static bool tmp006_check_identification(struct i2c_client *client)
>  	if (did < 0)
>  		return false;
>  
> -	return mid == MANUFACTURER_MAGIC && did == DEVICE_MAGIC;
> +	return mid == TMP006_MANUFACTURER_MAGIC && did == TMP006_DEVICE_MAGIC;
>  }
>  
>  static int tmp006_probe(struct i2c_client *client,
> 


  reply	other threads:[~2015-04-18 19:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15 20:39 [PATCH] iio:tcs4531: Fix leftover TCS3472_ prefix in tsl4531 driver Peter Meerwald
2015-04-15 20:39 ` [PATCH] iio:tsl2563: Use tsl2563_ prefix for driver's functions Peter Meerwald
2015-04-18 19:35   ` Jonathan Cameron
2015-04-15 20:39 ` [PATCH] iio:tmp006: Prefix #defines with TMP006_ Peter Meerwald
2015-04-18 19:36   ` Jonathan Cameron [this message]
2015-04-16  8:28 ` [PATCH] iio:tcs4531: Fix leftover TCS3472_ prefix in tsl4531 driver Daniel Baluta
2015-04-18 19:32   ` 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=5532B23A.7000005@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.