hwmon: (lan966x) Use the devm_clk_get_enabled() helper function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 8 Jul 2023 05:52:31 +0000 (07:52 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:29 +0000 (06:04 -0700)
commit6698cbd624bf3ad4822453b0c3941bf0220f283f
treeac88658cbe502f68fc4aef3ae8fe350ea279f4d5
parentc15a8edd63319788356a9fc9a7fe60468a1476d7
hwmon: (lan966x) Use the devm_clk_get_enabled() helper function

Use the devm_clk_get_enabled() helper function instead of hand-writing it.
It saves some line of codes.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/25f2ab4c61d4fc48e8200f8754bb446f2b89ea89.1688795527.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lan966x-hwmon.c