input: touch: maxim: set device capability
Yogish Kulkarni [Tue, 25 Jun 2013 11:12:23 +0000 (16:12 +0530)]
Mark device as capable of emitting MSC_ACTIVITY.

Bug 1313953

Change-Id: Ibc240c34f1d66ddc924a5ed662c81f323f429eaf
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/242429
(cherry picked from commit 5c82e83a697bdc15db4f7d00f3a6b89e6d16e90a)
Reviewed-on: http://git-master/r/288746
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

drivers/input/touchscreen/maxim_sti.c

index 3bca1bd..fda929c 100644 (file)
@@ -891,6 +891,11 @@ nl_process_driver_msg(struct dev_data *dd, u16 msg_id, void *msg)
                                             MAX_INPUT_EVENTS, 0, 0);
                        input_set_abs_params(dd->input_dev, ABS_MT_TOOL_TYPE,
                                             0, MT_TOOL_MAX, 0, 0);
+
+#ifdef NV_ENABLE_CPU_BOOST
+                       input_set_capability(dd->input_dev, EV_MSC, MSC_ACTIVITY);
+#endif
+
                        ret = input_register_device(dd->input_dev);
                        if (ret < 0) {
                                input_free_device(dd->input_dev);