108 lines
1.8 KiB
C
108 lines
1.8 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __INPUT_MAIN_H_
|
|
#define __INPUT_MAIN_H_
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_WATCHKEY)
|
|
int amlogic_watchkey_driver_init(void);
|
|
void amlogic_watchkey_driver_exit(void);
|
|
#else
|
|
static inline int amlogic_watchkey_driver_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void amlogic_watchkey_driver_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_GPIO_KEY)
|
|
int meson_gpio_kp_init(void);
|
|
void meson_gpio_kp_exit(void);
|
|
#else
|
|
static inline int meson_gpio_kp_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_gpio_kp_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_ADC_KEYPADS)
|
|
int meson_adc_kp_init(void);
|
|
void meson_adc_kp_exit(void);
|
|
#else
|
|
static inline int meson_adc_kp_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_adc_kp_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_MESON_IR)
|
|
int meson_ir_driver_init(void);
|
|
void meson_ir_driver_exit(void);
|
|
#else
|
|
static inline int meson_ir_driver_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_ir_driver_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_PWRKEY_PMIC6B)
|
|
int meson_pmic6b_pwrkey_init(void);
|
|
void meson_pmic6b_pwrkey_exit(void);
|
|
#else
|
|
static inline int meson_pmic6b_pwrkey_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_pmic6b_pwrkey_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_CKS05_TOUCH_KEYPADS)
|
|
int csk05_ts_init(void);
|
|
void csk05_ts_exit(void);
|
|
#else
|
|
static inline int csk05_ts_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void csk05_ts_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_INPUT_FILTER)
|
|
int input_filter_init(void);
|
|
void input_filter_exit(void);
|
|
#else
|
|
static inline int input_filter_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void input_filter_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /*_INPUT_MAIN_H__*/
|