hwmon: (lm90) simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 10 Jun 2019 09:51:54 +0000 (11:51 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 24 Jun 2019 01:33:01 +0000 (18:33 -0700)
commite67776cc30894d2840fc0b93fc3b3647677ef0b3
tree12e01a679ce171f2a53792fe273a0acaffedda4f
parent08d09d8099a7556d49ba0e770c32345cc79566b3
hwmon: (lm90) simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Reported-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c