]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (tmp102) Introduce dev variable in probe function
authorGuenter Roeck <linux@roeck-us.net>
Sun, 2 Feb 2014 22:22:30 +0000 (14:22 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 21 May 2014 23:02:20 +0000 (16:02 -0700)
commit48c7c56d2da7603a36dd9752ae72aae43d713d8e
tree6ecfa86c71351e144185921d96a047eeb81ff350
parent00676f2484d38cfad9e08f698c9d9ae3b1230191
hwmon: (tmp102) Introduce dev variable in probe function

The pointer to client->dev is used several times in the probe function.
Simplify code by introducing a separate variable for it.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp102.c