From: Jan Dittmer <jdittmer@ppp0.net>
To: Linux kernel <linux-kernel@vger.kernel.org>
Cc: johnpol@2ka.mipt.ru
Subject: [PATCH] matrox w1: fix integer to pointer conversion warnings
Date: Sun, 14 Nov 2004 13:07:08 +0100 [thread overview]
Message-ID: <41974A6C.20302@ppp0.net> (raw)
Get rid of some pointer to integer conversion warnings
in the matrox w1 bus driver.
Signed-off-by: Jan Dittmer <jdittmer@ppp0.net>
diff -Nru a/drivers/w1/matrox_w1.c b/drivers/w1/matrox_w1.c
--- a/drivers/w1/matrox_w1.c 2004-11-14 13:03:45 +01:00
+++ b/drivers/w1/matrox_w1.c 2004-11-14 13:03:45 +01:00
@@ -78,11 +78,12 @@
struct matrox_device
{
- unsigned long base_addr;
- unsigned long port_index, port_data;
+ char *base_addr;
+ char *port_index, *port_data;
u8 data_mask;
- unsigned long phys_addr, virt_addr;
+ unsigned long phys_addr;
+ char *virt_addr;
unsigned long found;
struct w1_bus_master *bus_master;
@@ -181,8 +182,7 @@
dev->phys_addr = pci_resource_start(pdev, 1);
- dev->virt_addr =
- (unsigned long) ioremap_nocache(dev->phys_addr, 16384);
+ dev->virt_addr = ioremap_nocache(dev->phys_addr, 16384);
if (!dev->virt_addr) {
dev_err(&pdev->dev, "%s: failed to ioremap(0x%lx, %d).\n",
__func__, dev->phys_addr, 16384);
next reply other threads:[~2004-11-14 12:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-14 12:07 Jan Dittmer [this message]
2004-11-14 20:06 ` [PATCH] matrox w1: fix integer to pointer conversion warnings Evgeniy Polyakov
2004-11-14 20:15 ` Jan Dittmer
2004-11-15 4:43 ` Evgeniy Polyakov
2004-11-15 4:46 ` Roland Dreier
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=41974A6C.20302@ppp0.net \
--to=jdittmer@ppp0.net \
--cc=johnpol@2ka.mipt.ru \
--cc=linux-kernel@vger.kernel.org \
/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.