Files
kernel_common_drivers/drivers/input/main.c
T
qinglin.li 67ec74de0d input: combine input modules [1/1]
PD#SWPL-95684

Problem:
combine input modules

Solution:
result:
	amlogic-input.ko
original:
	amlogic-input-gpiokey.ko
	amlogic-input-adckey.ko
	amlogic-input-ir.ko

Verify:
sc2

Change-Id: Ia8bdb007f4769bd627c9c9493b1d2dff7ffcb9f8
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:07:15 +08:00

32 lines
660 B
C

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
//#define DEBUG
#include <linux/module.h>
#include <linux/amlogic/module_merge.h>
#include "main.h"
static int __init input_main_init(void)
{
pr_debug("### %s() start\n", __func__);
call_sub_init(meson_gpio_kp_init);
call_sub_init(meson_adc_kp_init);
call_sub_init(meson_ir_driver_init);
pr_debug("### %s() end\n", __func__);
return 0;
}
static void __exit input_main_exit(void)
{
meson_ir_driver_exit();
meson_adc_kp_exit();
meson_gpio_kp_exit();
}
module_init(input_main_init);
module_exit(input_main_exit);
MODULE_LICENSE("GPL v2");