w1: use family_data instead of rom in w1_slave
authorDavid Fries <David@Fries.net>
Thu, 16 Jan 2014 04:29:24 +0000 (22:29 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 23:40:18 +0000 (15:40 -0800)
commiteb2c0da4ac2f4614b0bd3a1b6a0e9b82d0802e08
tree014d00301649ca8720db7168ebca51e810ad6793
parentd53f0a2c0574e6414dceeec59ae5a9e749bd058b
w1: use family_data instead of rom in w1_slave

The first line printed from w1_slave gives the context of the w1
device.  So does the second line, but if the CRC check failed, the
second line contains the last successful result.  It is confusing when
it prints the temperature next to the line that might be a previous
conversion and has nothing to do with that printed temperature value.
Modify the code to store the last good conversion in family_data,
which is designed for custom data structures.

Signed-off-by: David Fries <David@Fries.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_therm.c
drivers/w1/w1.h