hwmon: (scpi-hwmon): Use of_device_get_match_data()
authorMinghao Chi <chi.minghao@zte.com.cn>
Tue, 15 Mar 2022 02:34:12 +0000 (02:34 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 15 Mar 2022 23:30:56 +0000 (16:30 -0700)
commitfd6ca3f5b80f6dda381fe84211be3b491f28bf0f
tree3bb3988517d007d728aa57e682214697415ec444
parent5d4a2ea96b79e7e11f1551130bb9166258b71243
hwmon: (scpi-hwmon): Use of_device_get_match_data()

Use of_device_get_match_data() to simplify the code.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Link: https://lore.kernel.org/r/20220315023412.2118415-1-chi.minghao@zte.com.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/scpi-hwmon.c