26 Sep, 2014

1 commit

  • Current code init regmap with &da9052_regmap_config for both da9052-spi and
    da9052-i2c drivers. da9052-spi sets the read_flag_mask.
    The same setting may be applied for da9052-i2c if da9052-spi driver is loaded
    first because they actually use the same regmap_config setting.
    Fix this issue by using a local variable for regmap_config in da9052-spi driver,
    so the settings in spi driver won't impact the settings in i2c driver.
    Also makes da9052_regmap_config const to avoid similar issue.

    Signed-off-by: Axel Lin
    Acked-by: Adam Thomson
    Signed-off-by: Lee Jones

    Axel Lin
     

19 Mar, 2014

1 commit


09 Apr, 2013

1 commit


29 Nov, 2012

3 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
     
  • CONFIG_HOTPLUG is going away as an option so __devexit_p 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
     

20 May, 2012

1 commit


01 May, 2012

1 commit

  • In ancient times it was necessary to manually initialize the bus field of an
    spi_driver to spi_bus_type. These days this is done in spi_driver_register() so
    we can drop the manual assignment.

    The patch was generated using the following coccinelle semantic patch:
    //
    @@
    identifier _driver;
    @@
    struct spi_driver _driver = {
    .driver = {
    - .bus = &spi_bus_type,
    },
    };
    //

    Signed-off-by: Lars-Peter Clausen
    Cc: Srinidhi Kasagar
    Acked-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Lars-Peter Clausen
     

07 Mar, 2012

2 commits

  • Add __devinit annotation for da9052_spi_probe to fix below build warning:

    WARNING: drivers/built-in.o(.text+0x349b4): Section mismatch in reference from the function da9052_spi_probe() to the function .devinit.text:da9052_device_init()
    The function da9052_spi_probe() references
    the function __devinit da9052_device_init().
    This is often because da9052_spi_probe lacks a __devinit
    annotation or the annotation of da9052_device_init is wrong.

    Also add __devexit annotation for da9052_spi_remove because we have
    __devexit_p around it in the remove callback.

    Signed-off-by: Axel Lin
    Signed-off-by: Samuel Ortiz

    Axel Lin
     
  • Signed-off-by: Axel Lin
    Signed-off-by: Samuel Ortiz

    Axel Lin
     

14 Dec, 2011

1 commit