1. 22 9月, 2014 2 次提交
    • C
      extcon: rt8973a: Add Richtek RT8973A extcon driver · c03e017c
      Chanwoo Choi 提交于
      This patch add support for Richtek RT8973A which is Micro USB Switch OVP
      and i2c interface. The RT8973A is a USB port accessory detector and switch
      that is optimized to protect low voltage system from abnormal high input
      voltage (up to 28V) and supports high speed USB operation. Also, RT8973A
      support 'auto-configuration' mode. If auto-configuration mode is enabled,
      RT8973A would control internal h/w patch for USB D-/D+ switching.
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NSeung-Woo Kim <sw0312.kim@samsung.com>
      Acked-by: NKyungmin Park <kyungmin.park@samsung.com>
      c03e017c
    • C
      extcon: sm5502: Add I2C dependency to fix build break · 0746d5d3
      Chanwoo Choi 提交于
      This patch add I2C configuration dependency to fix following build break.
      If specific kernel build I2C as module, extcon-sm5502 have to depend on
      I2C configuration.
      
      	drivers/built-in.o: In function `regmap_smbus_byte_reg_read':
      	regmap-i2c.c:(.text+0x5030a): undefined reference to `i2c_smbus_read_byte_data'
      	drivers/built-in.o: In function `regmap_smbus_byte_reg_write':
      	regmap-i2c.c:(.text+0x50338): undefined reference to `i2c_smbus_write_byte_data'
      	drivers/built-in.o: In function `regmap_smbus_word_reg_read':
      	regmap-i2c.c:(.text+0x50356): undefined reference to `i2c_smbus_read_word_data'
      	drivers/built-in.o: In function `regmap_smbus_word_reg_write':
      	regmap-i2c.c:(.text+0x50384): undefined reference to `i2c_smbus_write_word_data'
      	drivers/built-in.o: In function `regmap_i2c_read':
      	regmap-i2c.c:(.text+0x503cf): undefined reference to `i2c_transfer'
      	drivers/built-in.o: In function `regmap_i2c_gather_write':
      	regmap-i2c.c:(.text+0x50442): undefined reference to `i2c_transfer'
      	drivers/built-in.o: In function `regmap_i2c_write':
      	regmap-i2c.c:(.text+0x50474): undefined reference to `i2c_master_send'
      	drivers/built-in.o: In function `sm5502_muic_i2c_init':
      	extcon-sm5502.c:(.init.text+0x6630): undefined reference to `i2c_register_driver'
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      0746d5d3
  2. 23 7月, 2014 1 次提交
    • C
      extcon: sm5502: Add support new SM5502 extcon device driver · 914b881f
      Chanwoo Choi 提交于
      This patch add new SM5502 MUIC(Micro-USB Interface Controller) device by using
      EXTCON subsystem. The extcon-sm5502 driver is capable of identifying the type
      of the external power source and attached accessory. An external power sources,
      such as Deticated Charger or a standard USB port, are able to charge the battery
      in the smart phone via the connector.
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      914b881f
  3. 16 6月, 2014 1 次提交
  4. 23 4月, 2014 1 次提交
  5. 19 3月, 2014 1 次提交
  6. 07 1月, 2014 1 次提交
  7. 05 8月, 2013 1 次提交
  8. 18 6月, 2013 1 次提交
  9. 16 4月, 2013 1 次提交
  10. 08 2月, 2013 1 次提交
  11. 26 1月, 2013 1 次提交
    • C
      extcon: max77693: Fix bug of build error related to INPUT subsystem · 1aa05905
      Chanwoo Choi 提交于
      This patch fix build error of following log:
      
      drivers/built-in.o: In function `max77693_muic_remove':
      extcon-max77693.c:(.text+0x664853): undefined reference to `input_unregister_device'
      drivers/built-in.o: In function `max77693_muic_probe':
      extcon-max77693.c:(.text+0x664971): undefined reference to `input_allocate_device'
      extcon-max77693.c:(.text+0x6649c1): undefined reference to `input_set_capability'
      extcon-max77693.c:(.text+0x6649d6): undefined reference to `input_set_capability'
      extcon-max77693.c:(.text+0x6649eb): undefined reference to `input_set_capability'
      extcon-max77693.c:(.text+0x664a00): undefined reference to `input_set_capability'
      extcon-max77693.c:(.text+0x664a15): undefined reference to `input_set_capability'
      extcon-max77693.c:(.text+0x664a20): undefined reference to `input_register_device'
      drivers/built-in.o: In function `max77693_muic_adc_handler':
      extcon-max77693.c:(.text+0x665318): undefined reference to `input_event'
      extcon-max77693.c:(.text+0x66532a): undefined reference to `input_event'
      make[1]: *** [vmlinux] Error 1
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: NMyungjoo Ham <myungjoo.ham@samsung.com>
      Reported-by: NRandy Dunlap <rdunlap@infradead.org>
      Acked-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1aa05905
  12. 06 9月, 2012 2 次提交
    • R
      extcon: extcon-arizona depends on INPUT · cdc1a790
      Randy Dunlap 提交于
      extcon-arizona uses input_*() functions so it should depend
      on INPUT.
      
      ERROR: "input_event" [drivers/extcon/extcon-arizona.ko] undefined!
      ERROR: "input_free_device" [drivers/extcon/extcon-arizona.ko] undefined!
      ERROR: "input_register_device" [drivers/extcon/extcon-arizona.ko] undefined!
      ERROR: "input_set_capability" [drivers/extcon/extcon-arizona.ko] undefined!
      ERROR: "input_allocate_device" [drivers/extcon/extcon-arizona.ko] undefined!
      ERROR: "input_unregister_device" [drivers/extcon/extcon-arizona.ko] undefined!
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
      Cc: Chanwoo Choi <cw00.choi@samsung.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cdc1a790
    • A
      extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devices · 19939860
      anish kumar 提交于
      External connector devices that decides connection information based on
      ADC values may use adc-jack device driver. The user simply needs to
      provide a table of adc range and connection states. Then, extcon
      framework will automatically notify others.
      
      Changes in V1:
      added Lars-Peter Clausen suggested changes:
      Using macros to get rid of boiler plate code such as devm_kzalloc
      and module_platform_driver.Other changes suggested are related to
      coding guidelines.
      
      Changes in V2:
      Removed some unnecessary checks and changed the way we are un-regitering
      extcon and freeing the irq while removing.
      
      Changes in V3:
      Renamed the files to comply with extcon naming.
      
      Changes in V4:
      Added the cancel_work_sync during removing of driver.
      
      Changes in V5:
      Added the dependency of IIO in Kconfig.
      
      Changes in V6:
      Some nitpicks related to naming.
      
      Changes in this version:
      V6 patch version patch broke the build:
      ERROR: "extcon_cable_name" [drivers/extcon/extcon-adc-jack.ko] undefined!
      
      Fixed it in this version.
      Acked-by: NJonathan Cameron <jic23@kernel.org>
      Reviewed-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: Nanish kumar <anish.singh@samsung.com>
      Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      19939860
  13. 17 8月, 2012 2 次提交
  14. 18 7月, 2012 1 次提交
  15. 09 7月, 2012 1 次提交
  16. 27 6月, 2012 1 次提交
  17. 10 5月, 2012 1 次提交
  18. 21 4月, 2012 2 次提交
    • 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
    • M
      Extcon (external connector): import Android's switch class and modify. · de55d871
      MyungJoo Ham 提交于
      External connector class (extcon) is based on and an extension of
      Android kernel's switch class located at linux/drivers/switch/.
      
      This patch provides the before-extension switch class moved to the
      location where the extcon will be located (linux/drivers/extcon/) and
      updates to handle class properly.
      
      The before-extension class, switch class of Android kernel, commits
      imported are:
      
      switch: switch class and GPIO drivers. (splitted)
      Author: Mike Lockwood <lockwood@android.com>
      
      switch: Use device_create instead of device_create_drvdata.
      Author: Arve Hjønnevåg <arve@android.com>
      
      In this patch, upon the commits of Android kernel, we have added:
      - Relocated and renamed for extcon.
      - Comments, module name, and author information are updated
      - Code clean for successing patches
      - Bugfix: enabling write access without write functions
      - Class/device/sysfs create/remove handling
      - Added comments about uevents
      - Format changes for extcon_dev_register() to have a parent dev.
      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>
      
      --
      Changes from v7
      - Compiler error fixed when it is compiled as a module.
      - Removed out-of-date Kconfig entry
      
      Changes from v6
      - Updated comment/strings
      - Revised "Android-compatible" mode.
         * Automatically activated if CONFIG_ANDROID && !CONFIG_ANDROID_SWITCH
         * Creates /sys/class/switch/*, which is a copy of /sys/class/extcon/*
      
      Changes from v5
      - Split the patch
      - Style fixes
      - "Android-compatible" mode is enabled by Kconfig option.
      
      Changes from v2
      - Updated name_show
      - Sysfs entries are handled by class itself.
      - Updated the method to add/remove devices for the class
      - Comments on uevent send
      - Able to become a module
      - Compatible with Android platform
      
      Changes from RFC
      - Renamed to extcon (external connector) from multistate switch
      - Added a seperated directory (drivers/extcon)
      - Added kerneldoc comments
      - Removed unused variables from extcon_gpio.c
      - Added ABI Documentation.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      de55d871