18 Jul, 2015
1 commit
-
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Dmitry Torokhov
08 Jul, 2015
1 commit
-
Despite it's name, sign_extend32() is used for 16 bit values aswell.
Signed-off-by: Martin Kepplinger
Signed-off-by: Dmitry Torokhov
25 Apr, 2014
1 commit
-
This driver has been used while on the OpenPhoenux GTA04 with a BMA180.
Signed-off-by: H. Nikolaus Schaller
Signed-off-by: Dmitry Torokhov
06 Dec, 2013
1 commit
-
Use the wrapper function for retrieving the platform data instead
of accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.Signed-off-by: Jingoo Han
Acked-by: Fugang Duan
Signed-off-by: Dmitry Torokhov
16 Feb, 2013
2 commits
-
Make the constants referring to range and bandwidth public so they can
be used when initializing the platform data fields in the platform code.Fix also some comments regarding the unit of measurement to use for the
range and bandwidth fields, the values are not actually expected to be
in G or HZ, the code in bma150.c just uses the BMA150_RANGE_xxx and
BMA150_BW_xxx constants like they are with no translation from actual
values in G or HZ.Signed-off-by: Michael Trimarchi
Signed-off-by: Antonio Ospite
Signed-off-by: Dmitry Torokhov -
When PM_RUNTIME is not defined, pm_runtime_get_sync() returns 1, see
include/linux/pm_runtime.c::__pm_runtime_resume(), and the check of the
return value was overlooking this, in this case bma150_open() would
return 1 which is not expected by upper layers.Maybe the check for != -ENOSYS (Function not implemented) was meant to
cover this, but pm_runtime_get_sync() does not return this value.For now fix the issue locally by checking explicitly for negative return
values.Signed-off-by: Michael Trimarchi
Signed-off-by: Antonio Ospite
Signed-off-by: Dmitry Torokhov
24 Nov, 2012
4 commits
-
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.Signed-off-by: Bill Pemberton
Acked-by: Mark Brown
Signed-off-by: Dmitry Torokhov -
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.Signed-off-by: Bill Pemberton
Acked-by: Mark Brown
Acked-by: Javier Martinez Canillas
Signed-off-by: Dmitry Torokhov -
CONFIG_HOTPLUG is going away as an option so __devinitdata is no
longer needed.Signed-off-by: Bill Pemberton
Signed-off-by: Dmitry Torokhov -
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.Signed-off-by: Bill Pemberton
Acked-by: Russell King
Signed-off-by: Dmitry Torokhov
17 Mar, 2012
1 commit
-
This patch converts the drivers in drivers/input/* to use the
module_i2c_driver() macro which makes the code smaller and a bit
simpler.Signed-off-by: Axel Lin
Signed-off-by: Dmitry Torokhov
09 Aug, 2011
1 commit
-
Signed-off-by: Albert Zhang
Signed-off-by: Eric Andersson
Acked-by: Jonathan Cameron
Reviewed-by: Alan Cox
Signed-off-by: Dmitry Torokhov