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)
commitfbd9af164c4a70e6f37b6985de8d481a6958cc2c
tree6ecfa86c71351e144185921d96a047eeb81ff350
parentaa9bcddada9e6e6538ac44b3623bb23b802ba689
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