19 Feb, 2016
1 commit
-
Make the divisor signed as DIV_ROUND_CLOSEST is undefined for negative
dividends when the divisor is unsigned.Signed-off-by: Peter Rosin
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck
23 Sep, 2014
1 commit
-
Simplify the code a bit and also improve readability.
Signed-off-by: Axel Lin
Signed-off-by: Guenter Roeck
06 Aug, 2014
1 commit
-
Current code uses data_rate as array index in ads1015_read_adc() and uses pga
as array index in ads1015_reg_to_mv, so we must make sure both data_rate and
pga settings are in valid value range.
Return -EINVAL if the setting is out-of-range.Signed-off-by: Axel Lin
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck
30 Jul, 2014
1 commit
-
Current code uses channel as array index, so the valid channel value is
0 .. ADS1015_CHANNELS - 1.Signed-off-by: Axel Lin
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck
12 Aug, 2013
1 commit
-
This patch adds support for ads1115 device to ads1015 driver.
Based on work of Emiliano Carnati .
Tested on ARM CPU based board.Signed-off-by: Evgeniy A. Dushistov
Signed-off-by: Guenter Roeck
24 Sep, 2012
1 commit
-
Convert to use devm_ functions to reduce code size and simplify the code.
Cc: Dirk Eibach
Signed-off-by: Guenter Roeck
19 Apr, 2012
1 commit
-
The following build warning is seen in some configurations.
drivers/hwmon/ads1015.c: In function 'show_in':
drivers/hwmon/ads1015.c:129: warning: 'in' may be used uninitialized in this functionFix by separating the register read function from the code converting the result
into mV.Signed-off-by: Guenter Roeck
Cc: Dirk Eibach
Reviewed-by: Robert Coulson
19 Mar, 2012
1 commit
-
This patch converts the drivers in drivers/hwmon/* to use the
module_i2c_driver() macro which makes the code smaller and a bit simpler.Signed-off-by: Axel Lin
Cc: Corentin Labbe
Cc: Dirk Eibach
Cc: "Mark M. Hoffman"
Cc: Steve Glendinning
Cc: Riku Voipio
Cc: Guillaume Ligneul
Cc: David George
Cc: "Hans J. Koch"
Cc: Marc Hulsman
Cc: Rudolf Marek
Signed-off-by: Guenter Roeck
23 Feb, 2012
1 commit
-
An error while creating sysfs attribute files in the driver's probe function
results in an error abort, but already created files are not removed. This patch
fixes the problem.Signed-off-by: Guenter Roeck
Cc: stable@vger.kernel.org # 3.0+
Cc: Dirk Eibach
Acked-by: Jean Delvare
04 Nov, 2011
1 commit
-
Make use of the new i2c_smbus_{read,write}_word_swapped functions.
This makes the driver code more compact and readable. It also ensures
proper error handling.Signed-off-by: Jean Delvare
Acked-by: Jonathan Cameron
Acked-by: Guenter Roeck
Cc: Dirk Eibach
Cc: "Mark M. Hoffman"
Cc: Guillaume Ligneul
22 Mar, 2011
3 commits
-
Configuration for ads1015 gain and datarate is possible via
devicetree or platform data.This is a followup patch to previous ads1015 patches on Jean Delvares
tree.Signed-off-by: Dirk Eibach
Signed-off-by: Jean Delvare -
It is cheaper to handle attributes individually.
Signed-off-by: Jean Delvare
Acked-by: Dirk Eibach -
Signed-off-by: Dirk Eibach
Signed-off-by: Jean Delvare