feat(reimaden): add platform support kernel module
This commit is contained in:
parent
b3d50a3180
commit
6c52d98c54
26 changed files with 2071 additions and 0 deletions
35
spec/reimaden/ac71/hwmon.c
Normal file
35
spec/reimaden/ac71/hwmon.c
Normal file
|
@ -0,0 +1,35 @@
|
|||
// 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_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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue