* in a byte pointed by data.
*/
static int
-read_i2c_reg(void *addr, u8 index, u8 *data)
+read_i2c_reg(void __iomem *addr, u8 index, u8 *data)
{
u32 tmp = index;
* and busy waits for the process to finish.
*/
static int
-write_i2c_reg(void *addr, u8 index, u8 data)
+write_i2c_reg(void __iomem *addr, u8 index, u8 data)
{
u32 tmp = index;
* This function starts writting the specified (by index) register
* and then returns.
*/
-void
-write_i2c_reg_nowait(void *addr, u8 index, u8 data)
+static void write_i2c_reg_nowait(void __iomem *addr, u8 index, u8 data)
{
u32 tmp = index;
*
* This function waits reading/writting to finish.
*/
-static int
-wait_i2c_reg(void *addr)
+static int wait_i2c_reg(void __iomem *addr)
{
if (ioread32(addr + IIC_CSR2) & NEW_CYCLE)
udelay(65); /* wait at least 63 usec for NEW_CYCLE to clear */