31 Jul, 2013

1 commit


12 Jun, 2013

1 commit

  • The driver core clears the driver data to NULL after device_release
    or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
    (device-core: Ensure drvdata = NULL when no driver is bound).
    Thus, it is not needed to manually clear the device driver data to NULL.

    Signed-off-by: Jingoo Han
    Acked-by: Lee Jones
    Signed-off-by: Samuel Ortiz

    Jingoo Han
     

08 Apr, 2013

1 commit

  • Driver twl4030-madc has hardcoded channel types (10 - battery current,
    1 - battery temperature) and also conversation data in variable
    twl4030_divider_ratios. These hardcoded channels are incorrect for
    Nokia RX-51 board (where is channel 0 - battery temperature).

    For Nokia RX-51 there is rx51_battery power_supply driver which reporting
    battery information via twl4030_madc_conversion. But this driver needs
    raw values (not converted via some hardcoded functions). So this patch
    adding new parameter "raw" to struct twl4030_madc_request which tell
    twl4030-madc driver to not convert values, but rather return raw.

    Signed-off-by: Pali Rohár
    Reviewed-by: Anton Vorontsov
    Signed-off-by: Samuel Ortiz

    Pali Rohár
     

15 Mar, 2013

1 commit

  • 4740f73fe5 "mfd: remove use of __devexit" removed the __devexit annotation
    on the twl4030_madc_remove function, but left an __exit_p() present on the
    pointer to this function. Using __exit_p was as wrong with the devexit in
    place as it is now, but now we get a gcc warning about an unused function.

    In order for the twl4030_madc_remove to work correctly in built-in code, we
    have to remove the __exit_p.

    Cc: Bill Pemberton
    Cc: Greg Kroah-Hartman
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Samuel Ortiz

    Arnd Bergmann
     

17 Dec, 2012

1 commit

  • Pull MFS update from Samuel Ortiz:
    "This is the MFD patch set for the 3.8 merge window.

    We have several new drivers, most of the time coming with their sub
    devices drivers:

    - Austria Microsystem's AS3711
    - Nano River's viperboard
    - TI's TPS80031, AM335x TS/ADC,
    - Realtek's MMC/memstick card reader
    - Nokia's retu

    We also got some notable cleanups and improvements:

    - tps6586x got converted to IRQ domains.
    - tps65910 and tps65090 moved to the regmap IRQ API.
    - STMPE is now Device Tree aware.
    - A general twl6040 and twl-core cleanup, with moves to the regmap
    I/O and IRQ APIs and a conversion to the recently added PWM
    framework.
    - sta2x11 gained regmap support.

    Then the rest is mostly tiny cleanups and fixes, among which we have
    Mark's wm5xxx and wm8xxx patchset."

    Far amount of annoying but largely trivial conflicts. Many due to
    __devinit/exit removal, others due to one or two of the new drivers also
    having come in through another tree.

    * tag 'mfd-3.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (119 commits)
    mfd: tps6507x: Convert to devm_kzalloc
    mfd: stmpe: Update DT support for stmpe driver
    mfd: wm5102: Add readback of DSP status 3 register
    mfd: arizona: Log if we fail to create the primary IRQ domain
    mfd: tps80031: MFD_TPS80031 needs to select REGMAP_IRQ
    mfd: tps80031: Add terminating entry for tps80031_id_table
    mfd: sta2x11: Fix potential NULL pointer dereference in __sta2x11_mfd_mask()
    mfd: wm5102: Add tuning for revision B
    mfd: arizona: Defer patch initialistation until after first device boot
    mfd: tps65910: Fix wrong ack_base register
    mfd: tps65910: Remove unused data
    mfd: stmpe: Get rid of irq_invert_polarity
    mfd: ab8500-core: Fix invalid free of devm_ allocated data
    mfd: wm5102: Mark DSP memory regions as volatile
    mfd: wm5102: Correct default for LDO1_CONTROL_2
    mfd: arizona: Register haptics devices
    mfd: wm8994: Make current device behaviour the default
    mfd: tps65090: MFD_TPS65090 needs to select REGMAP_IRQ
    mfd: Fix stmpe.c build when OF is not enabled
    mfd: jz4740-adc: Use devm_kzalloc
    ...

    Linus Torvalds
     

29 Nov, 2012

2 commits

  • CONFIG_HOTPLUG is going away as an option so __devexit is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Srinidhi Kasagar
    Cc: Peter Tyser
    Cc: Daniel Walker
    Cc: Bryan Huntsman
    Acked-by: David Brown
    Acked-by: Linus Walleij
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinit is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Srinidhi Kasagar
    Cc: Peter Tyser
    Cc: Daniel Walker
    Cc: Bryan Huntsman
    Acked-by: David Brown
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     

21 Nov, 2012

1 commit


09 Jan, 2012

1 commit


24 Oct, 2011

1 commit

  • Without turning the MADC clock on, no MADC conversions occur.

    $ cat /sys/class/hwmon/hwmon0/device/in8_input
    [ 53.428436] twl4030_madc twl4030_madc: conversion timeout!
    cat: read error: Resource temporarily unavailable

    Signed-off-by: Kyle Manna
    Signed-off-by: Samuel Ortiz

    Kyle Manna
     

06 Sep, 2011

2 commits


01 Aug, 2011

1 commit

  • A mutex is locked on entry into twl4030_madc_conversion().
    Immediate return on some error conditions leaves the
    mutex locked.

    This patch ensures that mutex is always unlocked before
    leaving the function.

    Signed-off-by: Sanjeev Premi
    Cc: Keerthy
    Signed-off-by: Samuel Ortiz

    Sanjeev Premi
     

23 Mar, 2011

2 commits