Skip to content

Commit

Permalink
w1: export w1_read_8 function
Browse files Browse the repository at this point in the history
Export the w1_read_8 function for use of drivers.  The OMAP HDQ
driver(drivers/w1/masters/omap_hdq.c) uses this function.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Madhusudhan Chikkature<madhu.cr@ti.com>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Madhusudhan Chikkature authored and Linus Torvalds committed Nov 13, 2008
1 parent 06de180 commit 34e453d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/w1/w1.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ void w1_slave_detach(struct w1_slave *sl);

u8 w1_triplet(struct w1_master *dev, int bdir);
void w1_write_8(struct w1_master *, u8);
u8 w1_read_8(struct w1_master *);
int w1_reset_bus(struct w1_master *);
u8 w1_calc_crc8(u8 *, int);
void w1_write_block(struct w1_master *, const u8 *, int);
Expand Down
3 changes: 2 additions & 1 deletion drivers/w1/w1_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ u8 w1_triplet(struct w1_master *dev, int bdir)
* @param dev the master device
* @return the byte read
*/
static u8 w1_read_8(struct w1_master * dev)
u8 w1_read_8(struct w1_master *dev)
{
int i;
u8 res = 0;
Expand All @@ -230,6 +230,7 @@ static u8 w1_read_8(struct w1_master * dev)

return res;
}
EXPORT_SYMBOL_GPL(w1_read_8);

/**
* Writes a series of bytes.
Expand Down

0 comments on commit 34e453d

Please sign in to comment.