Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313533
b: refs/heads/master
c: 2acd089
h: refs/heads/master
i:
  313531: 0329d96
v: v3
  • Loading branch information
Paul Walmsley committed Jun 22, 2012
1 parent e4cfd18 commit 7802cc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: d660030061dd7e20ad18557368188d9c1002ec71
refs/heads/master: 2acd089471d93373e051c6b1f9f9e0d9e51a76bc
8 changes: 4 additions & 4 deletions trunk/drivers/w1/masters/omap_hdq.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,20 @@ static struct w1_bus_master omap_w1_master = {
/* HDQ register I/O routines */
static inline u8 hdq_reg_in(struct hdq_data *hdq_data, u32 offset)
{
return __raw_readb(hdq_data->hdq_base + offset);
return __raw_readl(hdq_data->hdq_base + offset);
}

static inline void hdq_reg_out(struct hdq_data *hdq_data, u32 offset, u8 val)
{
__raw_writeb(val, hdq_data->hdq_base + offset);
__raw_writel(val, hdq_data->hdq_base + offset);
}

static inline u8 hdq_reg_merge(struct hdq_data *hdq_data, u32 offset,
u8 val, u8 mask)
{
u8 new_val = (__raw_readb(hdq_data->hdq_base + offset) & ~mask)
u8 new_val = (__raw_readl(hdq_data->hdq_base + offset) & ~mask)
| (val & mask);
__raw_writeb(new_val, hdq_data->hdq_base + offset);
__raw_writel(new_val, hdq_data->hdq_base + offset);

return new_val;
}
Expand Down

0 comments on commit 7802cc1

Please sign in to comment.