Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 429
b: refs/heads/master
c: d01daf7
h: refs/heads/master
i:
  427: aef3d15
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 25, 2005
1 parent da49886 commit c76cb82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba724a373a7184dce869e8adb79a0a03d91fbdd8
refs/heads/master: d01daf72f0a238c5ccfba7bf82999e384927412e
10 changes: 4 additions & 6 deletions trunk/arch/ppc/platforms/pmac_low_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct low_i2c_host
int mode; /* Current mode */
int channel; /* Current channel */
int num_channels; /* Number of channels */
unsigned long base; /* For keywest-i2c, base address */
void __iomem * base; /* For keywest-i2c, base address */
int bsteps; /* And register stepping */
int speed; /* And speed */
};
Expand Down Expand Up @@ -154,14 +154,12 @@ static const char *__kw_state_names[] = {

static inline u8 __kw_read_reg(struct low_i2c_host *host, reg_t reg)
{
return in_8(((volatile u8 *)host->base)
+ (((unsigned)reg) << host->bsteps));
return in_8(host->base + (((unsigned)reg) << host->bsteps));
}

static inline void __kw_write_reg(struct low_i2c_host *host, reg_t reg, u8 val)
{
out_8(((volatile u8 *)host->base)
+ (((unsigned)reg) << host->bsteps), val);
out_8(host->base + (((unsigned)reg) << host->bsteps), val);
(void)__kw_read_reg(host, reg_subaddr);
}

Expand Down Expand Up @@ -370,7 +368,7 @@ static void keywest_low_i2c_add(struct device_node *np)
break;
}
host->mode = pmac_low_i2c_mode_std;
host->base = (unsigned long)ioremap(np->addrs[0].address + aoffset,
host->base = ioremap(np->addrs[0].address + aoffset,
np->addrs[0].size);
host->func = keywest_low_i2c_func;
}
Expand Down

0 comments on commit c76cb82

Please sign in to comment.