1. 03 9月, 2015 3 次提交
  2. 01 9月, 2015 1 次提交
  3. 24 8月, 2015 1 次提交
  4. 10 8月, 2015 2 次提交
  5. 17 6月, 2015 1 次提交
  6. 12 5月, 2015 1 次提交
  7. 04 4月, 2015 1 次提交
  8. 09 3月, 2015 1 次提交
  9. 24 1月, 2015 1 次提交
  10. 20 10月, 2014 1 次提交
  11. 02 8月, 2014 1 次提交
  12. 27 6月, 2014 1 次提交
    • L
      i2c: mux: pca954x: fix dependencies · e556756a
      Linus Walleij 提交于
      This driver causes the following randconfig build error:
      
      drivers/i2c/muxes/i2c-mux-pca954x.c: In function ‘pca954x_probe’:
      drivers/i2c/muxes/i2c-mux-pca954x.c:204:2: error: implicit declaration
      of function ‘devm_gpiod_get’ [-Werror=implicit-function-declaration]
        gpio = devm_gpiod_get(&client->dev, "reset");
        ^
      drivers/i2c/muxes/i2c-mux-pca954x.c:204:7: warning: assignment makes
      pointer from integer without a cast [enabled by default]
        gpio = devm_gpiod_get(&client->dev, "reset");
             ^
      drivers/i2c/muxes/i2c-mux-pca954x.c:206:3: error: implicit declaration
      of function ‘gpiod_direction_output’
      [-Werror=implicit-function-declaration]
         gpiod_direction_output(gpio, 0);
         ^
      cc1: some warnings being treated as errors
      make[3]: *** [drivers/i2c/muxes/i2c-mux-pca954x.o] Error 1
      
      This is because it is getting compiled without gpiolib, so
      introduce an explicit dependency.
      Reported-by: NJim Davis <jim.epost@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      e556756a
  13. 05 6月, 2014 1 次提交
    • L
      i2c: pca954x: Fix compilation without CONFIG_GPIOLIB · 642653d1
      Laurent Pinchart 提交于
      The pca954x driver recently switched to the GPIO descriptor API without
      including the correct <linux/gpio/consumer.h> header. This breaks
      compilation without CONFIG_GPIOLIB.
      
      drivers/i2c/muxes/i2c-mux-pca954x.c: In function ‘pca954x_probe’:
      drivers/i2c/muxes/i2c-mux-pca954x.c:204:2: error: implicit declaration
      of function ‘devm_gpiod_get’ [-Werror=implicit-function-declaration]
        gpio = devm_gpiod_get(&client->dev, "reset");
        ^
      drivers/i2c/muxes/i2c-mux-pca954x.c:204:7: warning: assignment makes
      pointer from integer without a cast [enabled by default]
        gpio = devm_gpiod_get(&client->dev, "reset");
             ^
      drivers/i2c/muxes/i2c-mux-pca954x.c:206:3: error: implicit declaration
      of function ‘gpiod_direction_output’
      [-Werror=implicit-function-declaration]
         gpiod_direction_output(gpio, 0);
         ^
      cc1: some warnings being treated as errors
      make[3]: *** [drivers/i2c/muxes/i2c-mux-pca954x.o] Error 1
      
      Fix it by including the right header.
      Reported-by: NJim Davis <jim.epost@gmail.com>
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      642653d1
  14. 03 6月, 2014 1 次提交
  15. 30 1月, 2014 1 次提交
  16. 25 1月, 2014 1 次提交
  17. 04 1月, 2014 2 次提交
  18. 03 1月, 2014 1 次提交
  19. 31 10月, 2013 2 次提交
    • I
      i2c: mux: gpio: use reg value for i2c_add_mux_adapter · 8c0ec250
      Ionut Nicu 提交于
      The i2c-mux driver requires that the chan_id parameter
      passed to the i2c_add_mux_adapter() function is equal
      to the reg value for that adapter:
      
      for_each_child_of_node(mux_dev->of_node, child) {
      	ret = of_property_read_u32(child, "reg", &reg);
      	if (ret)
      		continue;
      	if (chan_id == reg) {
      		priv->adap.dev.of_node = child;
      		break;
      	}
      }
      
      The i2c-mux-gpio driver uses an internal logical index
      for chan_id when calling i2c_add_mux_adapter() instead
      of using the reg value.
      
      Because of this, there will problems in selecting the
      right adapter when the i2c-mux-gpio's index into
      mux->data.values doesn't match the reg value.
      
      An example of such a case:
      
      mux->data.values = { 1, 0 }
      
      For chan_id = 0, i2c-mux will bind the adapter to the
      of_node with reg = <0>, but when it will call the
      select() callback with chan_id set to 0, the i2c-mux-gpio
      will use it as an index into mux->data.values and it will
      actually select the bus with reg = <1>.
      Signed-off-by: NIonut Nicu <ioan.nicu.ext@nsn.com>
      Acked-by: NAlexander Sverdlin <alexander.sverdlin@nsn.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      Cc: stable@kernel.org
      8c0ec250
    • I
      i2c: mux: gpio: use gpio_set_value_cansleep() · 250ad590
      Ionut Nicu 提交于
      Some gpio chips may have get/set operations that
      can sleep. gpio_set_value() only works for chips
      which do not sleep, for the others we will get a
      kernel warning. Using gpio_set_value_cansleep()
      will work for both chips that do sleep and those
      who don't.
      Signed-off-by: NIonut Nicu <ioan.nicu.ext@nsn.com>
      Acked-by: NPeter Korsgaard <peter.korsgaard@barco.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      Cc: stable@kernel.org
      250ad590
  20. 30 10月, 2013 1 次提交
  21. 10 10月, 2013 4 次提交
  22. 04 10月, 2013 1 次提交
  23. 23 8月, 2013 1 次提交
    • W
      i2c: move OF helpers into the core · 687b81d0
      Wolfram Sang 提交于
      I2C of helpers used to live in of_i2c.c but experience (from SPI) shows
      that it is much cleaner to have this in the core. This also removes a
      circular dependency between the helpers and the core, and so we can
      finally register child nodes in the core instead of doing this manually
      in each driver. So, fix the drivers and documentation, too.
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      687b81d0
  24. 20 8月, 2013 1 次提交
  25. 17 4月, 2013 1 次提交
  26. 16 4月, 2013 1 次提交
  27. 02 4月, 2013 1 次提交
  28. 27 3月, 2013 1 次提交
  29. 22 3月, 2013 1 次提交
  30. 22 2月, 2013 1 次提交
  31. 22 1月, 2013 1 次提交
  32. 12 1月, 2013 1 次提交