[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8430D2C750334C98B8E8D1469F2023C7@subhasishg>
Date: Thu, 28 Apr 2011 12:52:49 +0530
From: "Subhasish Ghosh" <subhasish@...tralsolutions.com>
To: "Marc Kleine-Budde" <mkl@...gutronix.de>
Cc: "Russell King - ARM Linux" <linux@....linux.org.uk>,
<sachi@...tralsolutions.com>,
<davinci-linux-open-source@...ux.davincidsp.com>,
"Samuel Ortiz" <sameo@...ux.intel.com>, <nsekhar@...com>,
"open list" <linux-kernel@...r.kernel.org>, <m-watkins@...com>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v4 01/11] mfd: add pruss mfd driver.
Hi,
On 04/27/2011 03:18 PM, Subhasish Ghosh wrote:
> My problem is, I am doing something like this:
>
> s32 pruss_writel_multi(struct device *dev, u32 offset,
> u32 *pdatatowrite, u16 wordstowrite)
> {
> struct pruss_priv *pruss = dev_get_drvdata(dev->parent);
> u32 __iomem *paddresstowrite;
> u16 i;
>
> paddresstowrite = pruss->ioaddr + offset;
>
> for (i = 0; i < wordstowrite; i++)
> iowrite32(*pdatatowrite++, paddresstowrite++);
>
> return 0;
> }
>
> So, if I make paddresstowrite as void, it will not work. The above
> implementation does not generate any sparse errors though.
Yes, that why I can work with readb_multi even if I have void __iomen *.
But, how do I solve this problem. In the above function, I must use u32
__iomem *
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists