aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-03-30 21:57:33 -0400
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2011-03-31 10:26:23 -0400
commit25985edcedea6396277003854657b5f3cb31a628 (patch)
treef026e810210a2ee7290caeb737c23cb6472b7c38 /drivers/hwmon
parent6aba74f2791287ec407e0f92487a725a25908067 (diff)
Fix common misspellings
Fixes generated by 'codespell' and manually reviewed. Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/abituguru.c2
-rw-r--r--drivers/hwmon/abituguru3.c2
-rw-r--r--drivers/hwmon/adm1026.c2
-rw-r--r--drivers/hwmon/lm85.c2
-rw-r--r--drivers/hwmon/lm90.c2
-rw-r--r--drivers/hwmon/sht15.c6
-rw-r--r--drivers/hwmon/tmp102.c2
-rw-r--r--drivers/hwmon/w83791d.c2
-rw-r--r--drivers/hwmon/w83792d.c2
-rw-r--r--drivers/hwmon/w83793.c2
10 files changed, 12 insertions, 12 deletions
diff --git a/drivers/hwmon/abituguru.c b/drivers/hwmon/abituguru.c
index 0e05aa179eaa..e7d4c4687f02 100644
--- a/drivers/hwmon/abituguru.c
+++ b/drivers/hwmon/abituguru.c
@@ -1422,7 +1422,7 @@ static int __init abituguru_detect(void)
1422 at DATA and 0xAC, when this driver has already been loaded once 1422 at DATA and 0xAC, when this driver has already been loaded once
1423 DATA will hold 0x08. For most uGuru's CMD will hold 0xAC in either 1423 DATA will hold 0x08. For most uGuru's CMD will hold 0xAC in either
1424 scenario but some will hold 0x00. 1424 scenario but some will hold 0x00.
1425 Some uGuru's initally hold 0x09 at DATA and will only hold 0x08 1425 Some uGuru's initially hold 0x09 at DATA and will only hold 0x08
1426 after reading CMD first, so CMD must be read first! */ 1426 after reading CMD first, so CMD must be read first! */
1427 u8 cmd_val = inb_p(ABIT_UGURU_BASE + ABIT_UGURU_CMD); 1427 u8 cmd_val = inb_p(ABIT_UGURU_BASE + ABIT_UGURU_CMD);
1428 u8 data_val = inb_p(ABIT_UGURU_BASE + ABIT_UGURU_DATA); 1428 u8 data_val = inb_p(ABIT_UGURU_BASE + ABIT_UGURU_DATA);
diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c
index 034cebfcd273..e89d572e3320 100644
--- a/drivers/hwmon/abituguru3.c
+++ b/drivers/hwmon/abituguru3.c
@@ -151,7 +151,7 @@ struct abituguru3_data {
151 /* Pointer to the sensors info for the detected motherboard */ 151 /* Pointer to the sensors info for the detected motherboard */
152 const struct abituguru3_sensor_info *sensors; 152 const struct abituguru3_sensor_info *sensors;
153 153
154 /* The abituguru3 supports upto 48 sensors, and thus has registers 154 /* The abituguru3 supports up to 48 sensors, and thus has registers
155 sets for 48 sensors, for convienence reasons / simplicity of the 155 sets for 48 sensors, for convienence reasons / simplicity of the
156 code we always read and store all registers for all 48 sensors */ 156 code we always read and store all registers for all 48 sensors */
157 157
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c
index be0fdd58aa29..0531867484f4 100644
--- a/drivers/hwmon/adm1026.c
+++ b/drivers/hwmon/adm1026.c
@@ -175,7 +175,7 @@ static u16 ADM1026_REG_TEMP_OFFSET[] = { 0x1e, 0x6e, 0x6f };
175 * these macros are called: arguments may be evaluated more than once. 175 * these macros are called: arguments may be evaluated more than once.
176 */ 176 */
177 177
178/* IN are scaled acording to built-in resistors. These are the 178/* IN are scaled according to built-in resistors. These are the
179 * voltages corresponding to 3/4 of full scale (192 or 0xc0) 179 * voltages corresponding to 3/4 of full scale (192 or 0xc0)
180 * NOTE: The -12V input needs an additional factor to account 180 * NOTE: The -12V input needs an additional factor to account
181 * for the Vref pullup resistor. 181 * for the Vref pullup resistor.
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c
index cf47e6e476ed..250d099ca398 100644
--- a/drivers/hwmon/lm85.c
+++ b/drivers/hwmon/lm85.c
@@ -130,7 +130,7 @@ enum chips {
130 these macros are called: arguments may be evaluated more than once. 130 these macros are called: arguments may be evaluated more than once.
131 */ 131 */
132 132
133/* IN are scaled acording to built-in resistors */ 133/* IN are scaled according to built-in resistors */
134static const int lm85_scaling[] = { /* .001 Volts */ 134static const int lm85_scaling[] = { /* .001 Volts */
135 2500, 2250, 3300, 5000, 12000, 135 2500, 2250, 3300, 5000, 12000,
136 3300, 1500, 1800 /*EMC6D100*/ 136 3300, 1500, 1800 /*EMC6D100*/
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index 812781c655a7..c43b4e9f96a9 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -356,7 +356,7 @@ static int lm90_read16(struct i2c_client *client, u8 regh, u8 regl, u16 *value)
356 /* 356 /*
357 * There is a trick here. We have to read two registers to have the 357 * There is a trick here. We have to read two registers to have the
358 * sensor temperature, but we have to beware a conversion could occur 358 * sensor temperature, but we have to beware a conversion could occur
359 * inbetween the readings. The datasheet says we should either use 359 * between the readings. The datasheet says we should either use
360 * the one-shot conversion register, which we don't want to do 360 * the one-shot conversion register, which we don't want to do
361 * (disables hardware monitoring) or monitor the busy bit, which is 361 * (disables hardware monitoring) or monitor the busy bit, which is
362 * impossible (we can't read the values and monitor that bit at the 362 * impossible (we can't read the values and monitor that bit at the
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c
index 1a9c32d6893a..f4e617adb220 100644
--- a/drivers/hwmon/sht15.c
+++ b/drivers/hwmon/sht15.c
@@ -52,7 +52,7 @@
52#define SHT15_TSU 150 /* data setup time */ 52#define SHT15_TSU 150 /* data setup time */
53 53
54/** 54/**
55 * struct sht15_temppair - elements of voltage dependant temp calc 55 * struct sht15_temppair - elements of voltage dependent temp calc
56 * @vdd: supply voltage in microvolts 56 * @vdd: supply voltage in microvolts
57 * @d1: see data sheet 57 * @d1: see data sheet
58 */ 58 */
@@ -251,7 +251,7 @@ static inline int sht15_update_single_val(struct sht15_data *data,
251 enable_irq(gpio_to_irq(data->pdata->gpio_data)); 251 enable_irq(gpio_to_irq(data->pdata->gpio_data));
252 if (gpio_get_value(data->pdata->gpio_data) == 0) { 252 if (gpio_get_value(data->pdata->gpio_data) == 0) {
253 disable_irq_nosync(gpio_to_irq(data->pdata->gpio_data)); 253 disable_irq_nosync(gpio_to_irq(data->pdata->gpio_data));
254 /* Only relevant if the interrupt hasn't occured. */ 254 /* Only relevant if the interrupt hasn't occurred. */
255 if (!atomic_read(&data->interrupt_handled)) 255 if (!atomic_read(&data->interrupt_handled))
256 schedule_work(&data->read_work); 256 schedule_work(&data->read_work);
257 } 257 }
@@ -452,7 +452,7 @@ static void sht15_bh_read_data(struct work_struct *work_s)
452 */ 452 */
453 atomic_set(&data->interrupt_handled, 0); 453 atomic_set(&data->interrupt_handled, 0);
454 enable_irq(gpio_to_irq(data->pdata->gpio_data)); 454 enable_irq(gpio_to_irq(data->pdata->gpio_data));
455 /* If still not occured or another handler has been scheduled */ 455 /* If still not occurred or another handler has been scheduled */
456 if (gpio_get_value(data->pdata->gpio_data) 456 if (gpio_get_value(data->pdata->gpio_data)
457 || atomic_read(&data->interrupt_handled)) 457 || atomic_read(&data->interrupt_handled))
458 return; 458 return;
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c
index 93187c3cb5e7..5bd194968801 100644
--- a/drivers/hwmon/tmp102.c
+++ b/drivers/hwmon/tmp102.c
@@ -166,7 +166,7 @@ static int __devinit tmp102_probe(struct i2c_client *client,
166 166
167 if (!i2c_check_functionality(client->adapter, 167 if (!i2c_check_functionality(client->adapter,
168 I2C_FUNC_SMBUS_WORD_DATA)) { 168 I2C_FUNC_SMBUS_WORD_DATA)) {
169 dev_err(&client->dev, "adapter doesnt support SMBus word " 169 dev_err(&client->dev, "adapter doesn't support SMBus word "
170 "transactions\n"); 170 "transactions\n");
171 return -ENODEV; 171 return -ENODEV;
172 } 172 }
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c
index 400a88bde278..17cf1ab95521 100644
--- a/drivers/hwmon/w83791d.c
+++ b/drivers/hwmon/w83791d.c
@@ -556,7 +556,7 @@ static ssize_t show_fan_div(struct device *dev, struct device_attribute *attr,
556 556
557/* Note: we save and restore the fan minimum here, because its value is 557/* Note: we save and restore the fan minimum here, because its value is
558 determined in part by the fan divisor. This follows the principle of 558 determined in part by the fan divisor. This follows the principle of
559 least suprise; the user doesn't expect the fan minimum to change just 559 least surprise; the user doesn't expect the fan minimum to change just
560 because the divisor changed. */ 560 because the divisor changed. */
561static ssize_t store_fan_div(struct device *dev, struct device_attribute *attr, 561static ssize_t store_fan_div(struct device *dev, struct device_attribute *attr,
562 const char *buf, size_t count) 562 const char *buf, size_t count)
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c
index 63841f8cec07..f3e7130c4cda 100644
--- a/drivers/hwmon/w83792d.c
+++ b/drivers/hwmon/w83792d.c
@@ -244,7 +244,7 @@ FAN_TO_REG(long rpm, int div)
244#define TEMP1_TO_REG(val) (SENSORS_LIMIT(((val) < 0 ? (val)+0x100*1000 \ 244#define TEMP1_TO_REG(val) (SENSORS_LIMIT(((val) < 0 ? (val)+0x100*1000 \
245 : (val)) / 1000, 0, 0xff)) 245 : (val)) / 1000, 0, 0xff))
246#define TEMP1_FROM_REG(val) (((val) & 0x80 ? (val)-0x100 : (val)) * 1000) 246#define TEMP1_FROM_REG(val) (((val) & 0x80 ? (val)-0x100 : (val)) * 1000)
247/* for temp2 and temp3, because they need addtional resolution */ 247/* for temp2 and temp3, because they need additional resolution */
248#define TEMP_ADD_FROM_REG(val1, val2) \ 248#define TEMP_ADD_FROM_REG(val1, val2) \
249 ((((val1) & 0x80 ? (val1)-0x100 \ 249 ((((val1) & 0x80 ? (val1)-0x100 \
250 : (val1)) * 1000) + ((val2 & 0x80) ? 500 : 0)) 250 : (val1)) * 1000) + ((val2 & 0x80) ? 500 : 0))
diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c
index e3bdedfb5347..854f9117f1aa 100644
--- a/drivers/hwmon/w83793.c
+++ b/drivers/hwmon/w83793.c
@@ -1921,7 +1921,7 @@ static void w83793_update_nonvolatile(struct device *dev)
1921 struct w83793_data *data = i2c_get_clientdata(client); 1921 struct w83793_data *data = i2c_get_clientdata(client);
1922 int i, j; 1922 int i, j;
1923 /* 1923 /*
1924 They are somewhat "stable" registers, and to update them everytime 1924 They are somewhat "stable" registers, and to update them every time
1925 takes so much time, it's just not worthy. Update them in a long 1925 takes so much time, it's just not worthy. Update them in a long
1926 interval to avoid exception. 1926 interval to avoid exception.
1927 */ 1927 */