1. 17 Jan, 2013 29 commits
  2. 16 Jan, 2013 4 commits
    • David Stevenson's avatar
      w1_therm: Retries: remove old code add CRC · 867ff988
      David Stevenson authored
      
      
      w1_therm includes some obsolete code to detect bad_roms, this is no
      longer relevant.
      The retry code is only used for this bad_rom test, however there is a
      CRC check that detects a bad read, but does not trigger a retry. This
      patch removes all the bad_rom code and uses the CRC check to trigger
      retries.
      Signed-off-by: default avatarDavid Stevenson <david@avoncliff.com>
      Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      867ff988
    • Julia Lawall's avatar
      drivers/w1/masters/mxc_w1.c: use devm_ functions · e5279ff6
      Julia Lawall authored
      
      
      The various devm_ functions allocate memory that is released when a driver
      detaches.  This patch uses these functions for data that is allocated in
      the probe function of a platform device and is only freed in the remove
      function.
      
      At the same time, this fixes two faults.  First, mdev, the result of
      kzalloc, was never freed.  Second, on failure of ioremap, 0 was returned.
      This has been replaced by -EBUSY, which was the failure value for the call
      to request_mem_region, with which the call to ioremap has been combined.
      
      The warning message on failure of ioremap is dropped, because
      devm_request_and_ioremap already gives such messages on failure.
      
      Finally, the initial call to platform_get_resource is moved closer to the
      call to devm_request_and_ioremap, which takes care of checking whether its
      result is NULL, implying that a test on the result of this call to
      platform_get_resource is not needed.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e5279ff6
    • Julia Lawall's avatar
      drivers/w1/masters/ds1wm.c: use devm_ functions · eea2172e
      Julia Lawall authored
      
      
      The various devm_ functions allocate memory that is released when a driver
      detaches.  This patch uses these functions for data that is allocated in
      the probe function of a platform device and is only freed in the remove
      function.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      eea2172e
    • Greg Kroah-Hartman's avatar
      Merge tag 'extcon-for-3.9' of... · feee8303
      Greg Kroah-Hartman authored
      Merge tag 'extcon-for-3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon into char-misc-next
      
      Chanwoo writes:
        This is patch set of extcon for v3.9.
      
        Update to max77693/max8997 extcon driver:
        - Using MHL_TA cable for charging.
        - Support JIG cable.
        - Support Dock-Audio device for playing music and button of device.
        - Support Dock-Smart device for desktop mode with mouse/keyboard.
        - Set default UART/USB path on probe().
        - Check the state/type of cable after completing initialization.
        - Code clean to remove duplicate code and bug fix related to sequence of interrupt.
        - Fix irq_flag of max8997/max77693 driver.
      
        Update to arizona extcon driver:
        - Headphone measurements.
        - Alternative detection mechanism for non-default system designs.
        - Microphone clamp integration.
        - Support for additional detection pin.
        - MICBIAS rise time configuration.
      feee8303
  3. 15 Jan, 2013 7 commits