mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] mfd: max77686: Use NULL instead of 0
@ 2013-03-26  4:43 Sachin Kamat
  2013-04-08  9:31 ` Sachin Kamat
  2013-04-08  9:47 ` Samuel Ortiz
  0 siblings, 2 replies; 3+ messages in thread
From: Sachin Kamat @ 2013-03-26  4:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: sameo, sachin.kamat, patches, Jonghwa Lee

'data' is a pointer and hence use NULL instead of 0.
Silences the following warning:
drivers/mfd/max77686.c:49:50: warning: Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>
---
 drivers/mfd/max77686.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
index 4d73963..1cbb176 100644
--- a/drivers/mfd/max77686.c
+++ b/drivers/mfd/max77686.c
@@ -46,7 +46,7 @@ static struct regmap_config max77686_regmap_config = {
 
 #ifdef CONFIG_OF
 static struct of_device_id max77686_pmic_dt_match[] = {
-	{.compatible = "maxim,max77686",        .data = 0},
+	{.compatible = "maxim,max77686", .data = NULL},
 	{},
 };
 
-- 
1.7.4.1


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

* Re: [PATCH 1/1] mfd: max77686: Use NULL instead of 0
  2013-03-26  4:43 [PATCH 1/1] mfd: max77686: Use NULL instead of 0 Sachin Kamat
@ 2013-04-08  9:31 ` Sachin Kamat
  2013-04-08  9:47 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Sachin Kamat @ 2013-04-08  9:31 UTC (permalink / raw)
  To: linux-kernel, sameo

On 26 March 2013 10:13, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> 'data' is a pointer and hence use NULL instead of 0.
> Silences the following warning:
> drivers/mfd/max77686.c:49:50: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>
> ---
>  drivers/mfd/max77686.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
> index 4d73963..1cbb176 100644
> --- a/drivers/mfd/max77686.c
> +++ b/drivers/mfd/max77686.c
> @@ -46,7 +46,7 @@ static struct regmap_config max77686_regmap_config = {
>
>  #ifdef CONFIG_OF
>  static struct of_device_id max77686_pmic_dt_match[] = {
> -       {.compatible = "maxim,max77686",        .data = 0},
> +       {.compatible = "maxim,max77686", .data = NULL},
>         {},
>  };
>
> --
> 1.7.4.1
>

Ping Samuel :)

-- 
With warm regards,
Sachin

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

* Re: [PATCH 1/1] mfd: max77686: Use NULL instead of 0
  2013-03-26  4:43 [PATCH 1/1] mfd: max77686: Use NULL instead of 0 Sachin Kamat
  2013-04-08  9:31 ` Sachin Kamat
@ 2013-04-08  9:47 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2013-04-08  9:47 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-kernel, patches, Jonghwa Lee

Hi Sachin,

On Tue, Mar 26, 2013 at 10:13:36AM +0530, Sachin Kamat wrote:
> 'data' is a pointer and hence use NULL instead of 0.
> Silences the following warning:
> drivers/mfd/max77686.c:49:50: warning: Using plain integer as NULL pointer
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>
> ---
>  drivers/mfd/max77686.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
Patch applied to mfd-next, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

end of thread, other threads:[~2013-04-08  9:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26  4:43 [PATCH 1/1] mfd: max77686: Use NULL instead of 0 Sachin Kamat
2013-04-08  9:31 ` Sachin Kamat
2013-04-08  9:47 ` Samuel Ortiz

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®