aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/da9052-hwmon.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-03-13 19:40:39 -0400
committerGuenter Roeck <linux@roeck-us.net>2013-04-08 00:16:40 -0400
commit088ce2ac9ebac5c74faf4d39083627875fa6f0f0 (patch)
tree4e62aa545bf3fc762ec35538799dcfc24751e769 /drivers/hwmon/da9052-hwmon.c
parent236d9039480059f97dc9d3cd75e3651582b62997 (diff)
hwmon: Fix CamelCase checkpatch warnings
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/da9052-hwmon.c')
-rw-r--r--drivers/hwmon/da9052-hwmon.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/hwmon/da9052-hwmon.c b/drivers/hwmon/da9052-hwmon.c
index ab4452c5a98c..960fac3fb166 100644
--- a/drivers/hwmon/da9052-hwmon.c
+++ b/drivers/hwmon/da9052-hwmon.c
@@ -43,19 +43,19 @@ static const char * const input_names[] = {
43}; 43};
44 44
45/* Conversion function for VDDOUT and VBAT */ 45/* Conversion function for VDDOUT and VBAT */
46static inline int volt_reg_to_mV(int value) 46static inline int volt_reg_to_mv(int value)
47{ 47{
48 return DIV_ROUND_CLOSEST(value * 1000, 512) + 2500; 48 return DIV_ROUND_CLOSEST(value * 1000, 512) + 2500;
49} 49}
50 50
51/* Conversion function for ADC channels 4, 5 and 6 */ 51/* Conversion function for ADC channels 4, 5 and 6 */
52static inline int input_reg_to_mV(int value) 52static inline int input_reg_to_mv(int value)
53{ 53{
54 return DIV_ROUND_CLOSEST(value * 2500, 1023); 54 return DIV_ROUND_CLOSEST(value * 2500, 1023);
55} 55}
56 56
57/* Conversion function for VBBAT */ 57/* Conversion function for VBBAT */
58static inline int vbbat_reg_to_mV(int value) 58static inline int vbbat_reg_to_mv(int value)
59{ 59{
60 return DIV_ROUND_CLOSEST(value * 2500, 512); 60 return DIV_ROUND_CLOSEST(value * 2500, 512);
61} 61}
@@ -96,7 +96,7 @@ static ssize_t da9052_read_vddout(struct device *dev,
96 goto hwmon_err; 96 goto hwmon_err;
97 97
98 mutex_unlock(&hwmon->hwmon_lock); 98 mutex_unlock(&hwmon->hwmon_lock);
99 return sprintf(buf, "%d\n", volt_reg_to_mV(vdd)); 99 return sprintf(buf, "%d\n", volt_reg_to_mv(vdd));
100 100
101hwmon_err_release: 101hwmon_err_release:
102 da9052_disable_vddout_channel(hwmon->da9052); 102 da9052_disable_vddout_channel(hwmon->da9052);
@@ -137,7 +137,7 @@ static ssize_t da9052_read_vbat(struct device *dev,
137 if (ret < 0) 137 if (ret < 0)
138 return ret; 138 return ret;
139 139
140 return sprintf(buf, "%d\n", volt_reg_to_mV(ret)); 140 return sprintf(buf, "%d\n", volt_reg_to_mv(ret));
141} 141}
142 142
143static ssize_t da9052_read_misc_channel(struct device *dev, 143static ssize_t da9052_read_misc_channel(struct device *dev,
@@ -152,7 +152,7 @@ static ssize_t da9052_read_misc_channel(struct device *dev,
152 if (ret < 0) 152 if (ret < 0)
153 return ret; 153 return ret;
154 154
155 return sprintf(buf, "%d\n", input_reg_to_mV(ret)); 155 return sprintf(buf, "%d\n", input_reg_to_mv(ret));
156} 156}
157 157
158static ssize_t da9052_read_tjunc(struct device *dev, 158static ssize_t da9052_read_tjunc(struct device *dev,
@@ -187,7 +187,7 @@ static ssize_t da9052_read_vbbat(struct device *dev,
187 if (ret < 0) 187 if (ret < 0)
188 return ret; 188 return ret;
189 189
190 return sprintf(buf, "%d\n", vbbat_reg_to_mV(ret)); 190 return sprintf(buf, "%d\n", vbbat_reg_to_mv(ret));
191} 191}
192 192
193static ssize_t da9052_hwmon_show_name(struct device *dev, 193static ssize_t da9052_hwmon_show_name(struct device *dev,