27 May, 2011

6 commits


27 Mar, 2011

2 commits


23 Mar, 2011

4 commits


14 Jan, 2011

1 commit


29 Oct, 2010

2 commits


12 Aug, 2010

2 commits

  • The original code had a compile warning:
    drivers/mfd/88pm860x-core.c:431: warning: ‘ret’ may be used
    uninitialized in this function
    It seems like the warning is valid if either pdata or pdata->touch is
    NULL.

    This patch checks pdata and pdata->touch at the beginning of the
    function. That means everything can be pulled in one indent level.
    Now all the statements fit within the 80 character limit.

    Also at that point the "use_gpadc" variable isn't needed and removing
    it simplifies the logic.

    Signed-off-by: Dan Carpenter
    Acked-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Dan Carpenter
     
  • Fix typo error in LED resource of 88pm860x.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     

28 May, 2010

1 commit

  • This patch fixes three section mismatches.

    WARNING: drivers/mfd/88pm860x.o(.text+0x12): Section mismatch in
    reference from the function pm860x_device_exit() to the function
    .devexit.text:device_irq_exit()
    The function pm860x_device_exit() references a function in an exit
    section.
    Often the function device_irq_exit() has valid usage outside the exit
    section
    and the fix is to remove the __devexit annotation of device_irq_exit.

    WARNING: drivers/mfd/88pm860x.o(.text+0xb0): Section mismatch in
    reference from the function pm860x_device_init() to the function
    .devinit.text:device_8606_init()
    The function pm860x_device_init() references
    the function __devinit device_8606_init().
    This is often because pm860x_device_init lacks a __devinit
    annotation or the annotation of device_8606_init is wrong.

    WARNING: drivers/mfd/88pm860x.o(.text+0xbe): Section mismatch in
    reference from the function pm860x_device_init() to the function
    .devinit.text:device_8607_init()
    The function pm860x_device_init() references
    the function __devinit device_8607_init().
    This is often because pm860x_device_init lacks a __devinit
    annotation or the annotation of device_8607_init is wrong.

    Signed-off-by: Henrik Kretzschmar
    Signed-off-by: Samuel Ortiz

    Henrik Kretzschmar
     

25 May, 2010

2 commits


08 Mar, 2010

5 commits

  • Use genirq to simplify IRQ handling in 88pm860x. Remove the interface of
    mask/free IRQs on 88pm860x. All these work is taken by genirq. Update the
    touchscreen driver of 88pm860x since IRQ handling is changed.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     
  • Append backlight, led & touch subdevs into 88pm860x driver.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     
  • 88PM860x is a complex PMIC device. It contains touch, charger, sound, rtc,
    backlight, led, and so on.

    Host communicates to 88PM860x by I2C bus. Use thread irq to support this
    usage case.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     
  • 88PM8606 and 88PM8607 are two discrete chips used for power management.
    Hardware designer can use them together or only one of them according to
    requirement.

    There's some logic tightly linked between these two chips. For example, USB
    charger driver needs to access both chips by I2C interface.

    Now share one driver to these two devices. Only one I2C client is identified
    in platform init data. If another chip is also used, user should mark it in
    companion_addr field of platform init data. Then driver could create another
    I2C client for the companion chip.

    All I2C operations are accessed by 860x-i2c driver. In order to support both
    I2C client address, the read/write API is changed in below.

    reg_read(client, offset)
    reg_write(client, offset, data)

    The benefit is that client drivers only need one kind of read/write API. I2C
    and MFD driver can be shared in both 8606 and 8607.

    Since API is changed, update API in 8607 regulator driver.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     
  • Create 88pm8607-i2c driver to support all I2C operation of 88PM8607.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang