1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Sample HCK
4  *
5  */
6 #include <linux/module.h>
7 #include <linux/init.h>
8 #include <linux/hck/lite_hck_sample.h>
9 
get_boot_power_config(int* info)10 void get_boot_power_config(int* info)
11 {
12 	pr_info("hck sample: intf-2 run\n");
13 	*info = 2;
14 }
15 
samplehckone_init(void)16 static int __init samplehckone_init(void)
17 {
18 	pr_info("hck sample register_one\n");
19 	REGISTER_HCK_LITE_HOOK(get_boot_config_lhck, get_boot_power_config);
20 
21 	return 0;
22 }
23 
samplehckone_exit(void)24 static void __exit samplehckone_exit(void)
25 {
26 }
27 
28 module_init(samplehckone_init);
29 module_exit(samplehckone_exit);
30 MODULE_LICENSE("GPL v2");
31 MODULE_AUTHOR("zhujiaxin <zhujiaxin@huawei.com>");
32