diff options
author | PixelBot AutoMerger <android-nexus-securitybot@system.gserviceaccount.com> | 2021-10-03 20:39:11 -0700 |
---|---|---|
committer | SecurityBot <android-nexus-securitybot@system.gserviceaccount.com> | 2021-10-03 20:39:12 -0700 |
commit | ce469830b452dff2d7add15f7dfef8d1fc1cb4a9 (patch) | |
tree | e27381491ce22a445ede76e62c480b3e50d309cd | |
parent | 2b1defc806d406c3e02a9044ea5ba55ee5422134 (diff) | |
parent | e8cb55be314046fda6aeb37cf1e5803c424c6f6c (diff) | |
download | sec_touch-ce469830b452dff2d7add15f7dfef8d1fc1cb4a9.tar.gz |
Merge android-msm-pixel-4.19-sc-qpr1 into android-msm-pixel-4.19
SBMerger: 379283923
Change-Id: Ie2e75bf754bc2c0c13aec29f0f8d082ca3513b1b
Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
-rw-r--r-- | Kbuild | 6 | ||||
-rw-r--r-- | sec_ts.h | 13 |
2 files changed, 15 insertions, 4 deletions
@@ -1,3 +1,5 @@ obj-$(CONFIG_TOUCHSCREEN_SEC_TS) += sec_touch.o -sec_touch-objs += sec_cmd.o sec_ts.o sec_ts_fw.o sec_ts_fn.o \ - sec_ts_only_vendor.o +sec_touch-objs += sec_cmd.o sec_ts.o sec_ts_fw.o sec_ts_fn.o +ifneq ($(CONFIG_TOUCHSCREEN_SEC_TS_DEBUG),) +sec_touch-objs += sec_ts_only_vendor.o +endif @@ -1131,10 +1131,19 @@ int sec_ts_read_raw_data(struct sec_ts_data *ts, struct sec_cmd_data *sec, struct sec_ts_test_mode *mode); u8 sec_ts_run_cal_check(struct sec_ts_data *ts); -#if (1)//!defined(CONFIG_SAMSUNG_PRODUCT_SHIP) +#if IS_ENABLED(CONFIG_TOUCHSCREEN_SEC_TS_DEBUG) int sec_ts_raw_device_init(struct sec_ts_data *ts); -#endif void sec_ts_raw_device_exit(struct sec_ts_data *ts); +#else +static inline int sec_ts_raw_device_init(struct sec_ts_data *ts) +{ + return 0; +} + +static inline void sec_ts_raw_device_exit(struct sec_ts_data *ts) +{ +} +#endif extern struct class *sec_class; |