drivers: w1: refactor w1_slave_show to make the temp reading functionality separate
authorJaghathiswari Rankappagounder Natarajan <jaghu@google.com>
Wed, 30 Aug 2017 23:34:34 +0000 (16:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:50:14 +0000 (18:50 +0200)
commitb78165f028713121609dae40f10246da6293a281
treeb4323705fccb967873d6018b6f3c05c622309eba
parent2eb7954809bf26de27bc3a2fea4eef606bbf4482
drivers: w1: refactor w1_slave_show to make the temp reading functionality separate

Inside the w1_slave_show function refactor the code to read the temp
into a separate function.

Signed-off-by: Jaghathiswari Rankappagounder Natarajan <jaghu@google.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_therm.c