input: touch: sharp: turn off TOUCH_CLK by default.
David Pu [Wed, 11 Nov 2015 03:49:14 +0000 (19:49 -0800)]
TOUCH_CLK is only required for active stylus which is not supported yet.

Bug 1704518
Change-Id: Ic07e5163d68709c3fd1654f0cda9345108a19087
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/831594
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

drivers/input/touchscreen/lr388k7_ts.c

index 75ba320..9d2ee17 100644 (file)
@@ -2282,8 +2282,9 @@ static struct lr388k7_platform_data *lr388k7_parse_dt(struct device *dev,
        struct lr388k7_platform_data *pdata;
        struct device_node *np = dev->of_node;
        int ret, val, irq_gpio;
+#if defined(ACTIVE_ENABLE)
        const char *str;
-
+#endif
        pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
        if (!pdata)
                return ERR_PTR(-ENOMEM);
@@ -2335,6 +2336,7 @@ static struct lr388k7_platform_data *lr388k7_parse_dt(struct device *dev,
                goto exit_release_all_gpio;
        pdata->ts_touch_num_max = val;
 
+#if defined(ACTIVE_ENABLE)
        ret = of_property_read_string(np, "name-of-clock", &str);
        if (ret < 0)
                goto exit_release_all_gpio;
@@ -2345,7 +2347,6 @@ static struct lr388k7_platform_data *lr388k7_parse_dt(struct device *dev,
                goto exit_release_all_gpio;
        pdata->name_of_clock_con = (char *)str;
 
-#if defined(ACTIVE_ENABLE)
        pdata->gpio_clk_sel = of_get_named_gpio_flags(np,
                                                      "clock-sel-gpio",
                                                      0,