summaryrefslogtreecommitdiffstats
path: root/drivers/w1/w1.c
diff options
context:
space:
mode:
authorAndrew Worsley <amworsley@gmail.com>2017-08-27 21:34:23 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:23:29 +0200
commitf6887531c0c6b106dbe9aa5ed6eaa166d93df52e (patch)
tree2b1d5a2c7dfc085c0531108a0be77049f65933fb /drivers/w1/w1.c
parent54865314f5a1bfade1555ca6b26653729a0f3e23 (diff)
downloadlinux-f6887531c0c6b106dbe9aa5ed6eaa166d93df52e.tar.bz2
drivers: w1: Add 1w slave driver for DS28E05 EEPROM
Add a one wire driver for the DS28E05 one wire slave chip. This chip requires OverDrive support to talk to it. Signed-off-by: Andrew Worsley <amworsley@gmail.com> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/w1.c')
-rw-r--r--drivers/w1/w1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 0f614dfcb09f..3c76e1ca4b83 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -729,6 +729,8 @@ int w1_attach_slave_device(struct w1_master *dev, struct w1_reg_num *rn)
atomic_set(&sl->refcnt, 1);
atomic_inc(&sl->master->refcnt);
dev->slave_count++;
+ dev_info(&dev->dev, "Attaching one wire slave %02x.%012llx crc %02x\n",
+ rn->family, (unsigned long long)rn->id, rn->crc);
/* slave modules need to be loaded in a context with unlocked mutex */
mutex_unlock(&dev->mutex);