-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathhwmon.c
36 lines (27 loc) · 809 Bytes
/
hwmon.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-License-Identifier: GPL-2.0
#include "pr.h"
#include <linux/init.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <uapi/asm-generic/errno-base.h>
#include "hwmon.h"
#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 qc71_hwmon_setup(void)
{
if (nohwmon)
return -ENODEV;
(void) qc71_hwmon_fan_setup();
(void) qc71_hwmon_pwm_setup();
return 0;
}
void qc71_hwmon_cleanup(void)
{
(void) qc71_hwmon_fan_cleanup();
(void) qc71_hwmon_pwm_cleanup();
}