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
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
04 Oct, 2013
1 commit
-
Currently the BH1780GLI I2C driver relies on the device tree node
having the right name, but this is fragile. Use the compatible
string to probe the driver instead.Acked-by: Wolfram Sang
Signed-off-by: Linus Walleij
Signed-off-by: Greg Kroah-Hartman
07 Jun, 2013
1 commit
-
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.Signed-off-by: Jingoo Han
Reviewed-by: Andy Shevchenko
Signed-off-by: Greg Kroah-Hartman
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
22 Nov, 2012
3 commits
-
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.Signed-off-by: Bill Pemberton
Cc: "Michał Mirosław"
Cc: Wolfram Sang
Cc: Eric Piel
Cc: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman -
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.Signed-off-by: Bill Pemberton
Cc: "Michał Mirosław"
Cc: Eric Piel
Cc: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman -
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.Signed-off-by: Bill Pemberton
Cc: "Michał Mirosław"
Cc: Wolfram Sang
Cc: Eric Piel
Cc: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman
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
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
01 Nov, 2011
1 commit
-
These files really need the full module.h header file present, but
were just getting it implicitly before. Fix it up in advance so we
avoid build failures once the cleanup commit is present.Signed-off-by: Paul Gortmaker
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
23 Mar, 2011
1 commit
-
Signed-off-by: Shubhrajyoti Datta
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
30 Sep, 2010
1 commit
-
A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit. This is obsolete meanwhile, so fix it and hope the word will spread.Signed-off-by: Wolfram Sang
Acked-by: Mark Brown
Signed-off-by: Jean Delvare
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