From: NeilBrown Date: Sun, 19 Feb 2012 02:10:00 +0000 (+1100) Subject: w1_bq27000 - remove w1_bq27000_write X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df7019f37053bb5357907ec2d1fd516304f38348;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git w1_bq27000 - remove w1_bq27000_write 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 Acked-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/w1/slaves/w1_bq27000.c b/drivers/w1/slaves/w1_bq27000.c index 50d9af708b29..6ae60aa1315b 100644 --- a/drivers/w1/slaves/w1_bq27000.c +++ b/drivers/w1/slaves/w1_bq27000.c @@ -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;