hwmon: (ltc2991) remove device reference from state
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Tue, 31 Oct 2023 09:56:46 +0000 (11:56 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 11 Dec 2023 14:20:28 +0000 (06:20 -0800)
commit34c76a51205a32f2665cc2ef1247b4408187d4f0
tree8ee16da71fdbb845ab853a835fee9a873b6085f4
parent89fec128d5d10d3e09553975d19d8b1f29b429d4
hwmon: (ltc2991) remove device reference from state

Remove device reference from struct ltc2991_state since it is used only
inside the init function.

Pass the struct device as parameter to the init function instead.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://lore.kernel.org/r/20231031095647.48376-1-antoniu.miclaus@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2991.c