From: Luis Gonzalez Fernandez <luisgf@gmail.com>
To: lrg@ti.com, broonie@opensource.wolfsonmicro.com
Cc: linux-kernel@vger.kernel.org, Luis Gonzalez Fernandez <luisgf@gmail.com>
Subject: [PATCH 1/1] regulator: Fix incorrect casting in tps6230-regulator.c
Date: Mon, 10 Sep 2012 22:53:29 +0200 [thread overview]
Message-ID: <1347310409-25976-1-git-send-email-luisgf@gmail.com> (raw)
linux-3.6/drivers/regulator/tps62360-regulator.c: In function ‘tps62360_probe’:
linux-3.6/drivers/regulator/tps62360-regulator.c:364:13: warning: cast from poi$
Fix incorrect cast in tps62360_probe() function.
Signed-off-by: Luis Gonzalez Fernandez <luisgf@gmail.com>
---
drivers/regulator/tps62360-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c
index 68729a7..02ff11c 100644
--- a/drivers/regulator/tps62360-regulator.c
+++ b/drivers/regulator/tps62360-regulator.c
@@ -361,7 +361,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
dev_err(&client->dev, "Error: No device match found\n");
return -ENODEV;
}
- chip_id = (int)match->data;
+ chip_id = *((int *)match->data);
if (!pdata)
pdata = of_get_tps62360_platform_data(&client->dev);
}
--
1.7.9.5
next reply other threads:[~2012-09-10 20:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-10 20:53 Luis Gonzalez Fernandez [this message]
2012-09-11 0:09 ` [PATCH 1/1] regulator: Fix incorrect casting in tps6230-regulator.c Mark Brown
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=1347310409-25976-1-git-send-email-luisgf@gmail.com \
--to=luisgf@gmail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@ti.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