1. 21 3月, 2018 2 次提交
  2. 23 10月, 2017 1 次提交
    • C
      extcon: Split out extcon header file for consumer and provider device · 176aa360
      Chanwoo Choi 提交于
      The extcon has two type of extcon devices as following.
      - 'extcon provider deivce' adds new extcon device and detect the
         state/properties of external connector. Also, it notifies the
         state/properties to the extcon consumer device.
      - 'extcon consumer device' gets the change state/properties
         from extcon provider device.
      Prior to that, include/linux/extcon.h contains all exported API for
      both provider and consumer device driver. To clarify the meaning of
      header file and to remove the wrong use-case on consumer device,
      this patch separates into extcon.h and extcon-provider.h.
      
      [Description for include/linux/{extcon.h|extcon-provider.h}]
      - extcon.h includes the extcon API and data structure for extcon consumer
        device driver. This header file contains the following APIs:
        : Register/unregister the notifier to catch the change of extcon device
        : Get the extcon device instance
        : Get the extcon device name
        : Get the state of each external connector
        : Get the property value of each external connector
        : Get the property capability of each external connector
      
      - extcon-provider.h includes the extcon API and data structure for extcon
        provider device driver. This header file contains the following APIs:
        : Include 'include/linux/extcon.h'
        : Allocate the memory for extcon device instance
        : Register/unregister extcon device
        : Set the state of each external connector
        : Set the property value of each external connector
        : Set the property capability of each external connector
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Acked-by: NSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Acked-by: NChen-Yu Tsai <wens@csie.org>
      Acked-by: NCharles Keepax <ckeepax@opensource.cirrus.com>
      Acked-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      Acked-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Acked-by: NKishon Vijay Abraham I <kishon@ti.com>
      176aa360
  3. 13 9月, 2016 1 次提交
  4. 10 9月, 2016 1 次提交
  5. 08 8月, 2016 1 次提交
  6. 25 1月, 2016 1 次提交
  7. 30 9月, 2015 5 次提交
  8. 10 8月, 2015 1 次提交
  9. 19 5月, 2015 1 次提交
    • C
      extcon: Remove the optional name of extcon device · d71aadda
      Chanwoo Choi 提交于
      This patch removes the optional name of extcon device. Instead,
      extcon_dev_register() set the device name as 'extcon[number]' naming pattern.
      - /sys/class/extcon/[hardcoded device name] -> /sys/class/extcon/extcon[number]
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Acked-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
      Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
      Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Cc: Graeme Gregory <gg@slimlogic.co.uk>
      Cc: Kishon Vijay Abraham I <kishon@ti.com>
      Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
      Cc: Jaewon Kim <jaewon02.kim@samsung.com>
      d71aadda
  10. 20 10月, 2014 1 次提交
  11. 22 9月, 2014 1 次提交
  12. 16 6月, 2014 1 次提交
  13. 29 4月, 2014 1 次提交
  14. 24 4月, 2014 1 次提交
  15. 19 3月, 2014 1 次提交
  16. 09 1月, 2014 1 次提交
  17. 07 1月, 2014 1 次提交
  18. 27 9月, 2013 5 次提交
  19. 05 8月, 2013 1 次提交
  20. 14 2月, 2013 1 次提交
  21. 27 11月, 2012 3 次提交
  22. 22 10月, 2012 1 次提交
  23. 17 8月, 2012 2 次提交
  24. 19 6月, 2012 3 次提交
  25. 03 5月, 2012 1 次提交
  26. 21 4月, 2012 1 次提交
    • M
      Extcon: support generic GPIO extcon driver · be48308a
      MyungJoo Ham 提交于
      The generic GPIO extcon driver (an external connector device based on
      GPIO control) and imported from Android kernel.
      
      switch: switch class and GPIO drivers. (splitted)
      Author: Mike Lockwood <lockwood@android.com>
      
      switch: gpio: Don't call request_irq with interrupts disabled
      Author: Arve Hjønnevåg <arve@android.com>
      
      switch_gpio: Add missing #include <linux/interrupt.h>
      Author: Mike Lockwood <lockwood@android.com>
      Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      
      --
      Changed from v7:
      - Style updates mentioned by Stephen Boyd and Mark Brown
      Changed from v5:
      - Splitted at v5 from the main extcon patch.
      - Added debounce time for irq handlers.
      - Use request_any_context_irq instead of request_irq
      - User needs to specify irq flags for GPIO interrupts (was fixed to
      IRQF_TRIGGER_LOW before)
      - Use module_platform_driver().
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      be48308a