Commit 34e453d4 authored by Madhusudhan Chikkature's avatar Madhusudhan Chikkature Committed by Linus Torvalds

w1: export w1_read_8 function

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: default avatarEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 06de1808
...@@ -206,6 +206,7 @@ void w1_slave_detach(struct w1_slave *sl); ...@@ -206,6 +206,7 @@ void w1_slave_detach(struct w1_slave *sl);
u8 w1_triplet(struct w1_master *dev, int bdir); u8 w1_triplet(struct w1_master *dev, int bdir);
void w1_write_8(struct w1_master *, u8); void w1_write_8(struct w1_master *, u8);
u8 w1_read_8(struct w1_master *);
int w1_reset_bus(struct w1_master *); int w1_reset_bus(struct w1_master *);
u8 w1_calc_crc8(u8 *, int); u8 w1_calc_crc8(u8 *, int);
void w1_write_block(struct w1_master *, const u8 *, int); void w1_write_block(struct w1_master *, const u8 *, int);
......
...@@ -217,7 +217,7 @@ u8 w1_triplet(struct w1_master *dev, int bdir) ...@@ -217,7 +217,7 @@ u8 w1_triplet(struct w1_master *dev, int bdir)
* @param dev the master device * @param dev the master device
* @return the byte read * @return the byte read
*/ */
static u8 w1_read_8(struct w1_master * dev) u8 w1_read_8(struct w1_master *dev)
{ {
int i; int i;
u8 res = 0; u8 res = 0;
...@@ -230,6 +230,7 @@ static u8 w1_read_8(struct w1_master * dev) ...@@ -230,6 +230,7 @@ static u8 w1_read_8(struct w1_master * dev)
return res; return res;
} }
EXPORT_SYMBOL_GPL(w1_read_8);
/** /**
* Writes a series of bytes. * Writes a series of bytes.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment