Skip to content

Commit

Permalink
w1_bq27000 - remove w1_bq27000_write
Browse files Browse the repository at this point in the history
The function is never used so remove it to avoid bit-rot.
It can trivially be re-added if there is ever a need.

Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
NeilBrown authored and Greg Kroah-Hartman committed Feb 24, 2012
1 parent b6c40b8 commit df7019f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions drivers/w1/slaves/w1_bq27000.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,6 @@

static int F_ID;

void w1_bq27000_write(struct device *dev, u8 buf, u8 reg)
{
struct w1_slave *sl = container_of(dev, struct w1_slave, dev);

if (!dev) {
pr_info("Could not obtain slave dev ptr\n");
return;
}

w1_write_8(sl->master, HDQ_CMD_WRITE | reg);
w1_write_8(sl->master, buf);
}
EXPORT_SYMBOL(w1_bq27000_write);

static int w1_bq27000_read(struct device *dev, unsigned int reg)
{
u8 val;
Expand Down

0 comments on commit df7019f

Please sign in to comment.