1. 01 Apr, 2015 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'extcon-next-for-4.1' of... · 86d39839
      Greg Kroah-Hartman authored
      Merge tag 'extcon-next-for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon into char-misc-next
      
      Chanwoo writes:
      
      Update extcon for v4.1
      
      This patchset include two new extcon driver and fix minor issue of extcon
      driver.
      
      Detailed description for patchset:
      1. new extcon-max77843.c and extcon-usb-gpio.c extcon driver
      - extcon-max77843.c driver support the MAXIM MAX77843 MUIC (Micor-USB Interface
      Controller) device which handles the various external connectors such as TA/USB
      /USB-HOST/JIG and so on.
      - extcon-usb-gpio.c driver support the USB and USB-HOST cable detection by
      using the GPIO pin which is connected to USB ID pin. This GPIO pin updates the
      USB cable states.
      
      2. Rename the filename of extcon core driver and add missing locking mechanism
      - Rename the previous extcon-class driver.c as extcon.c because '-class'
      postfix is not necessary word.
      - extcon core driver (extcon.c) used the raw_notifier_chain. It must be
      protected by locking mechanism to avoid the list changing while
      extcon_update_state() is executed.
      
      3. Fix minor issue of extcon drviers
      - Fix cable name by using the capital letter instead of small letter on
      extcon-max77693.c driver.
      - Clean-up code of extcon-arizona.c to detect headphone cable.
      - Fix the wrong return type and variable type on extcon-max77843.c.
      - Fix the checkpatch warning of all extcon drivers.
      86d39839
  2. 26 Mar, 2015 7 commits
  3. 25 Mar, 2015 25 commits
  4. 24 Mar, 2015 1 commit
  5. 23 Mar, 2015 3 commits
    • James Hogan's avatar
      metag: Fix ioremap_wc/ioremap_cached build errors · 0164a711
      James Hogan authored
      When ioremap_wc() or ioremap_cached() are used without first including
      asm/pgtable.h, the _PAGE_CACHEABLE or _PAGE_WR_COMBINE definitions
      aren't found, resulting in build errors like the following (in
      next-20150323 due to "lib: devres: add a helper function for
      ioremap_wc"):
      
      lib/devres.c: In function ‘devm_ioremap_wc’:
      lib/devres.c:91: error: ‘_PAGE_WR_COMBINE’ undeclared
      
      We can't easily include asm/pgtable.h in asm/io.h due to dependency
      problems, so split out the _PAGE_* definitions from asm/pgtable.h into a
      separate asm/pgtable-bits.h header (as a couple of other architectures
      already do), and include that in io.h instead.
      Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
      Cc: linux-metag@vger.kernel.org
      Cc: Abhilash Kesavan <a.kesavan@samsung.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      0164a711
    • Hans de Goede's avatar
      extcon: Fix missing locking when [un]registering notifiers · 66bee35f
      Hans de Goede authored
      Since extcon.c is using raw_notifiers it must protect the notifier
      list itself when [un]registering notifiers to avoid the list changing while
      extcon_update_state is walking the list (through raw_notifier_call_chain).
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      [cw00.choi: Apply this patch to extcon.c driver instead of old extcon-class.c]
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      66bee35f
    • Dan Carpenter's avatar
      extcon: max77843: Fix an error code in max77843_init_muic_regmap() · b9b518f5
      Dan Carpenter authored
      The i2c_new_dummy() return the NULL if error happen. So, If i2c_new_dummy()
      return NULL, max77843_init_muic_regmap() return the proper error value
      (-ENOMEM);
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      [cw00.choi: Use -ENOMEM instead of -ENODEV and modify patch description]
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      b9b518f5
  6. 22 Mar, 2015 3 commits