Merge branch 'next' into for-linus
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 17 May 2016 00:25:08 +0000 (17:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 17 May 2016 00:25:08 +0000 (17:25 -0700)
Prepare first round of input updates for 4.7 merge window.

1  2 
drivers/input/misc/twl6040-vibra.c
drivers/input/mouse/byd.c
drivers/input/tablet/gtco.c

@@@ -45,8 -45,9 +45,8 @@@
  struct vibra_info {
        struct device *dev;
        struct input_dev *input_dev;
 -      struct workqueue_struct *workqueue;
        struct work_struct play_work;
-       struct mutex mutex;
        int irq;
  
        bool enabled;
@@@ -181,17 -182,7 +181,15 @@@ static void vibra_play_work(struct work
  {
        struct vibra_info *info = container_of(work,
                                struct vibra_info, play_work);
 +      int ret;
 +
 +      /* Do not allow effect, while the routing is set to use audio */
 +      ret = twl6040_get_vibralr_status(info->twl6040);
 +      if (ret & TWL6040_VIBSEL) {
 +              dev_info(info->dev, "Vibra is configured for audio\n");
 +              return;
 +      }
  
-       mutex_lock(&info->mutex);
        if (info->weak_speed || info->strong_speed) {
                if (!info->enabled)
                        twl6040_vibra_enable(info);
Simple merge
Simple merge