summaryrefslogtreecommitdiff
path: root/sec_ts_fn.c
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2020-04-24 17:46:32 +0800
committerSuper Liu <supercjliu@google.com>2020-04-24 22:40:37 +0800
commitdfb8cf71771db26fc5f36fe679fedc4eaffb8f51 (patch)
treeea5048c090443ad5ac679e6788aefb45f0387823 /sec_ts_fn.c
parent8821b6862d89711a725285fc8445fbe7c1d0870e (diff)
downloadsec_touch-dfb8cf71771db26fc5f36fe679fedc4eaffb8f51.tar.gz
sec_touch: use IS_ENABLED macro for builtin and module config check
Bug: 140591953 Change-Id: I18b98ba7aaefdee65f715e02c4371c9660586917 Signed-off-by: Super Liu <supercjliu@google.com>
Diffstat (limited to 'sec_ts_fn.c')
-rw-r--r--sec_ts_fn.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sec_ts_fn.c b/sec_ts_fn.c
index 52ea692..2e8049a 100644
--- a/sec_ts_fn.c
+++ b/sec_ts_fn.c
@@ -944,8 +944,7 @@ static ssize_t heatmap_mode_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
-#if defined(CONFIG_TOUCHSCREEN_HEATMAP) || \
- defined(CONFIG_TOUCHSCREEN_HEATMAP_MODULE)
+#if IS_ENABLED(CONFIG_TOUCHSCREEN_HEATMAP)
struct sec_cmd_data *sec = dev_get_drvdata(dev);
struct sec_ts_data *ts = container_of(sec, struct sec_ts_data, sec);
struct sec_ts_plat_data *pdata = ts->plat_data;
@@ -987,8 +986,7 @@ static ssize_t heatmap_mode_store(struct device *dev,
static ssize_t heatmap_mode_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
-#if defined(CONFIG_TOUCHSCREEN_HEATMAP) || \
- defined(CONFIG_TOUCHSCREEN_HEATMAP_MODULE)
+#if IS_ENABLED(CONFIG_TOUCHSCREEN_HEATMAP)
struct sec_cmd_data *sec = dev_get_drvdata(dev);
struct sec_ts_data *ts = container_of(sec, struct sec_ts_data, sec);
const struct sec_ts_plat_data *pdata = ts->plat_data;