17 Mar, 2015

1 commit

  • The bh1780gli driver does not create an i2c module alias for the
    device it supports, preventing the driver from being loaded
    automatically when needed on non-OF/DT systems. Add it.

    Signed-off-by: Jean Delvare
    Cc: Arnd Bergmann
    Cc: Greg Kroah-Hartman
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     

28 Jul, 2014

1 commit

  • This patch introduces the use of devm_kzalloc and does away with the
    kfrees in the probe and remove functions. A label and the kfree
    being called on the return path of failure on i2c_check_functionality,
    which is completely unnecessary and removed. The NULL assignment of
    ddata is no longer required is also done away with.

    Signed-off-by: Himangi Saraogi
    Acked-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Himangi Saraogi
     

04 Oct, 2013

1 commit


07 Jun, 2013

1 commit


29 Mar, 2013

1 commit

  • Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
    build warning when CONFIG_PM_SLEEP is not selected. This is because
    sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when
    the CONFIG_PM_SLEEP is enabled.

    drivers/misc/bh1780gli.c:200:12: warning: 'bh1780_suspend' defined but not used [-Wunused-function]
    drivers/misc/bh1780gli.c:222:12: warning: 'bh1780_resume' defined but not used [-Wunused-function]

    Signed-off-by: Jingoo Han
    Signed-off-by: Greg Kroah-Hartman

    Jingoo Han
     

22 Nov, 2012

3 commits


19 Apr, 2012

1 commit

  • Drivers that refer to a __devexit function in an operations
    structure need to annotate that pointer with __devexit_p so it
    is replaced with a NULL pointer when the section gets discarded.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     

25 Jan, 2012

1 commit

  • This patch converts the drivers in drivers/misc/* to use the
    module_i2c_driver() macro which makes the code smaller and a bit
    simpler.

    Signed-off-by: Axel Lin
    Cc: Michael Hennerich
    Cc: Anantha Narayanan
    Cc: Hemanth V
    Cc: Christoph Mair
    Cc: Grant Likely
    Cc: Ben Gardner
    Cc: Minkyu Kang
    Cc: Kalhan Trisal
    Cc: Darrick J. Wong
    Cc: Daniel Mack
    Cc: Rodolfo Giometti
    Acked-by: Arnd Bergmann
    Signed-off-by: Greg Kroah-Hartman

    Axel Lin
     

01 Nov, 2011

1 commit


26 Apr, 2011

1 commit

  • Using C line continuation inside format strings is error prone.
    Clean up the unintended whitespace introduced by misuse of \.
    Neaten correctly used line continations as well for consistency.

    drivers/scsi/arcmsr/arcmsr_hba.c has these errors as well,
    but arcmsr needs a lot more work and the driver should likely be
    moved to staging instead.

    Signed-off-by: Joe Perches
    Acked-by: Randy Dunlap
    Signed-off-by: Jiri Kosina

    Joe Perches
     

23 Mar, 2011

1 commit


30 Sep, 2010

1 commit


10 Aug, 2010

1 commit

  • Add support for ROHM BH1780GLI Ambient light sensor.

    BH1780 supports I2C interface. Driver supports read/update of power state
    and read of lux value (through SYSFS). Writing value 3 to power_state
    enables the sensor and current lux value could be read.

    Currently this driver follows the same sysfs convention as supported by
    drivers/misc/isl29003.c.

    Signed-off-by: Hemanth V
    Reviewed-by: Daniel Mack
    Acked-by: Jonathan Cameron
    Cc: Jean Delvare
    Cc: Wolfram Sang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hemanth V