1. 12 12月, 2015 1 次提交
    • J
      Input: atmel_mxt_ts - add maxtouch to I2C table for module autoload · b7d21058
      Javier Martinez Canillas 提交于
      The Atmel maxtouch DT binding documents that the compatible string for
      the device is "atmel,maxtouch" and the I2C core always reports a module
      alias of the form i2c:alias where alias is the compatible string model:
      
      $ grep MODALIAS /sys/devices/platform/12e00000.i2c/i2c-8/8-004b/uevent
      MODALIAS=i2c:maxtouch
      
      But there isn't maxtouch entry in the I2C device ID table so when the
      i2c:maxtouch MODALIAS uevent is reported, kmod is not able to match the
      alias with a module to load:
      
      $ modinfo atmel_mxt_ts | grep alias
      alias:          of:N*T*Catmel,maxtouch
      alias:          i2c:mXT224
      alias:          i2c:atmel_mxt_tp
      alias:          i2c:atmel_mxt_ts
      alias:          i2c:qt602240_ts
      
      So add the maxtouch entry to the I2C device ID table to allow the module
      to be autoloaded when the device is registered via OF.
      Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      b7d21058
  2. 03 12月, 2015 1 次提交
  3. 05 8月, 2015 7 次提交
  4. 18 7月, 2015 1 次提交
  5. 21 5月, 2015 1 次提交
  6. 16 4月, 2015 1 次提交
  7. 07 4月, 2015 2 次提交
  8. 01 1月, 2015 1 次提交
  9. 02 11月, 2014 1 次提交
  10. 11 9月, 2014 1 次提交
  11. 10 9月, 2014 1 次提交
  12. 14 8月, 2014 3 次提交
  13. 08 8月, 2014 1 次提交
  14. 29 7月, 2014 1 次提交
  15. 24 7月, 2014 14 次提交
  16. 08 6月, 2014 1 次提交
    • N
      Input: atmel_mxt_ts - fix invalid return from mxt_get_bootloader_version · 68807a0c
      Nick Dyer 提交于
      The patch e57a66aa: "Input: atmel_mxt_ts - read and report
      bootloader version" from May 18, 2014, leads to the following static
      checker warning:
      
      	drivers/input/touchscreen/atmel_mxt_ts.c:437 mxt_get_bootloader_version()
      	warn: signedness bug returning '(-5)'
      
      drivers/input/touchscreen/atmel_mxt_ts.c
         429  static u8 mxt_get_bootloader_version(struct mxt_data *data, u8 val)
         430  {
         431          struct device *dev = &data->client->dev;
         432          u8 buf[3];
         433
         434          if (val & MXT_BOOT_EXTENDED_ID) {
         435                  if (mxt_bootloader_read(data, &buf[0], 3) != 0) {
         436                          dev_err(dev, "%s: i2c failure\n", __func__);
         437                          return -EIO;
                                             ^^^^
      This gets truncated into a number from 0-255 and anyway the caller
      doesn't check for errors.
      
      (reported by Dan Carpenter)
      Signed-off-by: NNick Dyer <nick.dyer@itdev.co.uk>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      68807a0c
  17. 27 5月, 2014 2 次提交