git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00250ec
)
hwmon: (ads1015) Fix build warning
author
Guenter Roeck
<guenter.roeck@ericsson.com>
Mon, 9 Apr 2012 17:53:00 +0000
(13:53 -0400)
committer
Guenter Roeck
<guenter.roeck@ericsson.com>
Wed, 18 Apr 2012 18:15:50 +0000
(11:15 -0700)
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 function
Fix by separating the register read function from the code converting the result
into mV.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Dirk Eibach <eibach@gdsys.de>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/ads1015.c
patch
|
blob
|
history
diff --cc
drivers/hwmon/ads1015.c
Simple merge