14 Jan, 2011

1 commit

  • Currently the led device name is fetched from the device_type in
    I2C_BOARD_INFO which comes from the platform data. This name is in turn
    used to create an entry in sysfs.

    If there exists two or more lp5521 on a particular platform, the
    device_type in I2C_BOARD_INFO has to be the same, else lp5521 driver probe
    wont be called and if used so, results in run time warning "cannot create
    sysfs with same name" and hence a failure.

    The name that is used to create sysfs entry is to be passed by the struct
    led_platform_data. Hence adding an element of type const char * and
    change in lp5521 driver to use this name in creating the led device if
    present else use the name obtained by I2C_BOARD_INFO.

    Signed-off-by: Arun Murthy
    Acked-by: Samu Onkalo
    Cc: Ilkka Koskinen
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Murthy
     

12 Nov, 2010

1 commit

  • This patchset provides support for LP5521 and LP5523 LED driver chips from
    National Semicondutor. Both drivers supports programmable engines and
    naturally LED class features.

    Documentation is provided as a part of the patchset. I created "leds"
    subdirectory under Documentation. Perhaps the rest of the leds*
    documentation should be moved there.

    Datasheets are freely available at National Semiconductor www pages.

    This patch:

    LP5521 chip is three channel led driver with programmable engines. Driver
    provides support for that chip for direct access via led class or via
    programmable engines.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo