forked from crashniels/aura-gpu
-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.c
33 lines (25 loc) · 636 Bytes
/
main.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
// SPDX-License-Identifier: GPL-2.0
#include <linux/module.h>
#include <linux/pci.h>
#include "debug.h"
#include "aura-gpu-hw.h"
static struct i2c_adapter *adapter = NULL;
static int __init aura_module_init (
void
){
adapter = aura_i2c_bios_create();
if (IS_ERR_OR_NULL(adapter))
CLEAR_ERR(adapter);
return 0;
}
static void __exit aura_module_exit (
void
){
if (adapter)
aura_i2c_bios_destroy(adapter);
}
module_init(aura_module_init);
module_exit(aura_module_exit);
MODULE_AUTHOR("Owen Parry <waldermort@gmail.com>");
MODULE_DESCRIPTION("ASUS AURA SMBus driver");
MODULE_LICENSE("GPL");