Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314889
b: refs/heads/master
c: 0c2a6ce
h: refs/heads/master
i:
  314887: 5e02e92
v: v3
  • Loading branch information
Ido Yariv authored and Luciano Coelho committed Jun 22, 2012
1 parent 13f77c9 commit 7f744e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 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: 02eb1d9d3bc307e2b540b8c095fa19342789f86d
refs/heads/master: 0c2a6ce04eb4d742170a4ddfeb57263fb7964698
26 changes: 13 additions & 13 deletions trunk/drivers/net/wireless/ti/wlcore/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,33 +53,33 @@ void wl1271_io_init(struct wl1271 *wl);
int wlcore_translate_addr(struct wl1271 *wl, int addr);

/* Raw target IO, address is not translated */
static inline void wl1271_raw_write(struct wl1271 *wl, int addr, void *buf,
size_t len, bool fixed)
static inline int wlcore_raw_write(struct wl1271 *wl, int addr, void *buf,
size_t len, bool fixed)
{
wl->if_ops->write(wl->dev, addr, buf, len, fixed);
return wl->if_ops->write(wl->dev, addr, buf, len, fixed);
}

static inline void wl1271_raw_read(struct wl1271 *wl, int addr, void *buf,
size_t len, bool fixed)
static inline int wlcore_raw_read(struct wl1271 *wl, int addr, void *buf,
size_t len, bool fixed)
{
wl->if_ops->read(wl->dev, addr, buf, len, fixed);
return wl->if_ops->read(wl->dev, addr, buf, len, fixed);
}

static inline void wlcore_raw_read_data(struct wl1271 *wl, int reg, void *buf,
size_t len, bool fixed)
{
wl1271_raw_read(wl, wl->rtable[reg], buf, len, fixed);
wlcore_raw_read(wl, wl->rtable[reg], buf, len, fixed);
}

static inline void wlcore_raw_write_data(struct wl1271 *wl, int reg, void *buf,
size_t len, bool fixed)
{
wl1271_raw_write(wl, wl->rtable[reg], buf, len, fixed);
wlcore_raw_write(wl, wl->rtable[reg], buf, len, fixed);
}

static inline u32 wl1271_raw_read32(struct wl1271 *wl, int addr)
{
wl1271_raw_read(wl, addr, &wl->buffer_32,
wlcore_raw_read(wl, addr, &wl->buffer_32,
sizeof(wl->buffer_32), false);

return le32_to_cpu(wl->buffer_32);
Expand All @@ -88,7 +88,7 @@ static inline u32 wl1271_raw_read32(struct wl1271 *wl, int addr)
static inline void wl1271_raw_write32(struct wl1271 *wl, int addr, u32 val)
{
wl->buffer_32 = cpu_to_le32(val);
wl1271_raw_write(wl, addr, &wl->buffer_32,
wlcore_raw_write(wl, addr, &wl->buffer_32,
sizeof(wl->buffer_32), false);
}

Expand All @@ -99,7 +99,7 @@ static inline void wl1271_read(struct wl1271 *wl, int addr, void *buf,

physical = wlcore_translate_addr(wl, addr);

wl1271_raw_read(wl, physical, buf, len, fixed);
wlcore_raw_read(wl, physical, buf, len, fixed);
}

static inline void wl1271_write(struct wl1271 *wl, int addr, void *buf,
Expand All @@ -109,7 +109,7 @@ static inline void wl1271_write(struct wl1271 *wl, int addr, void *buf,

physical = wlcore_translate_addr(wl, addr);

wl1271_raw_write(wl, physical, buf, len, fixed);
wlcore_raw_write(wl, physical, buf, len, fixed);
}

static inline void wlcore_write_data(struct wl1271 *wl, int reg, void *buf,
Expand All @@ -135,7 +135,7 @@ static inline void wl1271_read_hwaddr(struct wl1271 *wl, int hwaddr,

physical = wlcore_translate_addr(wl, addr);

wl1271_raw_read(wl, physical, buf, len, fixed);
wlcore_raw_read(wl, physical, buf, len, fixed);
}

static inline u32 wl1271_read32(struct wl1271 *wl, int addr)
Expand Down

0 comments on commit 7f744e8

Please sign in to comment.