// SPDX-License-Identifier: GPL-2.0 #include "pr.h" #include #include #include #include #include "hwmon_fan.h" #include "hwmon_pwm.h" /* ========================================================================== */ static bool nohwmon; module_param(nohwmon, bool, 0444); MODULE_PARM_DESC(nohwmon, "do not report to the hardware monitoring subsystem (default=false)"); /* ========================================================================== */ int __init ac71_hwmon_setup(void) { if (nohwmon) return -ENODEV; (void) ac71_hwmon_fan_setup(); (void) ac71_hwmon_pwm_setup(); return 0; } void ac71_hwmon_cleanup(void) { (void) ac71_hwmon_fan_cleanup(); (void) ac71_hwmon_pwm_cleanup(); }