Guest User

NST linux patch

a guest
Jul 3rd, 2018
180
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/drivers/input/touchscreen/rm31080a_ts.c b/drivers/input/touchscreen/rm31080a_ts.c
  2. index 9a2b96c..fb6db7f 100644
  3. --- a/drivers/input/touchscreen/rm31080a_ts.c
  4. +++ b/drivers/input/touchscreen/rm31080a_ts.c
  5. @@ -3405,6 +3405,9 @@ static void rm_tch_set_input_resolution(unsigned int x, unsigned int y)
  6.  {
  7.     input_set_abs_params(g_input_dev, ABS_MT_POSITION_X, 0, x - 1, 0, 0);
  8.     input_set_abs_params(g_input_dev, ABS_MT_POSITION_Y, 0, y - 1, 0, 0);
  9. +   input_set_abs_params(g_input_dev, ABS_X, 0, x - 1, 0, 0);
  10. +   input_set_abs_params(g_input_dev, ABS_Y, 0, y - 1, 0, 0);
  11. +
  12.  }
  13.  
  14.  static struct rm_spi_ts_platform_data *rm_ts_parse_dt(struct device *dev,
  15. @@ -3550,7 +3553,11 @@ struct rm_tch_ts *rm_tch_input_init(struct device *dev, unsigned int irq,
  16.     input_dev->hint_events_per_packet = 256U;
  17.  
  18.     input_set_drvdata(input_dev, ts);
  19. -   input_set_capability(input_dev, EV_MSC, MSC_ACTIVITY);
  20. +// input_set_capability(input_dev, EV_MSC, MSC_ACTIVITY);
  21. +   input_set_capability(input_dev, EV_ABS, ABS_X);
  22. +   input_set_capability(input_dev, EV_ABS, ABS_Y);
  23. +   input_set_capability(input_dev, EV_ABS, ABS_PRESSURE);
  24. +   input_set_capability(input_dev, EV_KEY, BTN_TOUCH);
  25.  
  26.  #if (INPUT_PROTOCOL_CURRENT_SUPPORT == INPUT_PROTOCOL_TYPE_A)
  27.     __set_bit(EV_ABS, input_dev->evbit);
  28. diff --git a/drivers/platform/tegra/tegra12_clocks.c b/drivers/platform/tegra/tegra12_clocks.c
  29. index 332e5a0..822d555 100644
  30. --- a/drivers/platform/tegra/tegra12_clocks.c
  31. +++ b/drivers/platform/tegra/tegra12_clocks.c
  32. @@ -1581,8 +1581,8 @@ static int tegra12_cpu_clk_set_rate(struct clk *c, unsigned long rate)
  33.             return -ENOSYS;
  34.         else if ((!c->dvfs->dvfs_rail->reg) && (old_rate < rate) &&
  35.              (c->boot_rate < rate)) {
  36. -           WARN(1, "Increasing CPU rate while regulator is not"
  37. -               " ready is not allowed\n");
  38. +//         WARN(1, "Increasing CPU rate while regulator is not"
  39. +//             " ready is not allowed\n");
  40.             return -ENOSYS;
  41.         }
  42.     }
  43. diff --git a/drivers/platform/tegra/tegra21_clocks.c b/drivers/platform/tegra/tegra21_clocks.c
  44. index f31cdc6..76b79b3 100644
  45. --- a/drivers/platform/tegra/tegra21_clocks.c
  46. +++ b/drivers/platform/tegra/tegra21_clocks.c
  47. @@ -1305,8 +1305,8 @@ static int tegra21_cpu_clk_set_rate(struct clk *c, unsigned long rate)
  48.             return -ENOSYS;
  49.         else if ((!c->dvfs->dvfs_rail->reg) && (old_rate < rate) &&
  50.              (c->boot_rate < rate)) {
  51. -           WARN(1, "Increasing CPU rate while regulator is not"
  52. -               " ready is not allowed\n");
  53. +//         WARN(1, "Increasing CPU rate while regulator is not"
  54. +//             " ready is not allowed\n");
  55.             return -ENOSYS;
  56.         }
  57.     }
RAW Paste Data