mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Fix common misspellings
Fixes generated by 'codespell' and manually reviewed. Signed-off-by: Lucas De Marchi <[email protected]>
This commit is contained in:
parent
6aba74f279
commit
25985edced
2463 changed files with 4252 additions and 4252 deletions
|
|
@ -1422,7 +1422,7 @@ static int __init abituguru_detect(void)
|
|||
at DATA and 0xAC, when this driver has already been loaded once
|
||||
DATA will hold 0x08. For most uGuru's CMD will hold 0xAC in either
|
||||
scenario but some will hold 0x00.
|
||||
Some uGuru's initally hold 0x09 at DATA and will only hold 0x08
|
||||
Some uGuru's initially hold 0x09 at DATA and will only hold 0x08
|
||||
after reading CMD first, so CMD must be read first! */
|
||||
u8 cmd_val = inb_p(ABIT_UGURU_BASE + ABIT_UGURU_CMD);
|
||||
u8 data_val = inb_p(ABIT_UGURU_BASE + ABIT_UGURU_DATA);
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ struct abituguru3_data {
|
|||
/* Pointer to the sensors info for the detected motherboard */
|
||||
const struct abituguru3_sensor_info *sensors;
|
||||
|
||||
/* The abituguru3 supports upto 48 sensors, and thus has registers
|
||||
/* The abituguru3 supports up to 48 sensors, and thus has registers
|
||||
sets for 48 sensors, for convienence reasons / simplicity of the
|
||||
code we always read and store all registers for all 48 sensors */
|
||||
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ static u16 ADM1026_REG_TEMP_OFFSET[] = { 0x1e, 0x6e, 0x6f };
|
|||
* these macros are called: arguments may be evaluated more than once.
|
||||
*/
|
||||
|
||||
/* IN are scaled acording to built-in resistors. These are the
|
||||
/* IN are scaled according to built-in resistors. These are the
|
||||
* voltages corresponding to 3/4 of full scale (192 or 0xc0)
|
||||
* NOTE: The -12V input needs an additional factor to account
|
||||
* for the Vref pullup resistor.
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ enum chips {
|
|||
these macros are called: arguments may be evaluated more than once.
|
||||
*/
|
||||
|
||||
/* IN are scaled acording to built-in resistors */
|
||||
/* IN are scaled according to built-in resistors */
|
||||
static const int lm85_scaling[] = { /* .001 Volts */
|
||||
2500, 2250, 3300, 5000, 12000,
|
||||
3300, 1500, 1800 /*EMC6D100*/
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ static int lm90_read16(struct i2c_client *client, u8 regh, u8 regl, u16 *value)
|
|||
/*
|
||||
* There is a trick here. We have to read two registers to have the
|
||||
* sensor temperature, but we have to beware a conversion could occur
|
||||
* inbetween the readings. The datasheet says we should either use
|
||||
* between the readings. The datasheet says we should either use
|
||||
* the one-shot conversion register, which we don't want to do
|
||||
* (disables hardware monitoring) or monitor the busy bit, which is
|
||||
* impossible (we can't read the values and monitor that bit at the
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
#define SHT15_TSU 150 /* data setup time */
|
||||
|
||||
/**
|
||||
* struct sht15_temppair - elements of voltage dependant temp calc
|
||||
* struct sht15_temppair - elements of voltage dependent temp calc
|
||||
* @vdd: supply voltage in microvolts
|
||||
* @d1: see data sheet
|
||||
*/
|
||||
|
|
@ -251,7 +251,7 @@ static inline int sht15_update_single_val(struct sht15_data *data,
|
|||
enable_irq(gpio_to_irq(data->pdata->gpio_data));
|
||||
if (gpio_get_value(data->pdata->gpio_data) == 0) {
|
||||
disable_irq_nosync(gpio_to_irq(data->pdata->gpio_data));
|
||||
/* Only relevant if the interrupt hasn't occured. */
|
||||
/* Only relevant if the interrupt hasn't occurred. */
|
||||
if (!atomic_read(&data->interrupt_handled))
|
||||
schedule_work(&data->read_work);
|
||||
}
|
||||
|
|
@ -452,7 +452,7 @@ static void sht15_bh_read_data(struct work_struct *work_s)
|
|||
*/
|
||||
atomic_set(&data->interrupt_handled, 0);
|
||||
enable_irq(gpio_to_irq(data->pdata->gpio_data));
|
||||
/* If still not occured or another handler has been scheduled */
|
||||
/* If still not occurred or another handler has been scheduled */
|
||||
if (gpio_get_value(data->pdata->gpio_data)
|
||||
|| atomic_read(&data->interrupt_handled))
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ static int __devinit tmp102_probe(struct i2c_client *client,
|
|||
|
||||
if (!i2c_check_functionality(client->adapter,
|
||||
I2C_FUNC_SMBUS_WORD_DATA)) {
|
||||
dev_err(&client->dev, "adapter doesnt support SMBus word "
|
||||
dev_err(&client->dev, "adapter doesn't support SMBus word "
|
||||
"transactions\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -556,7 +556,7 @@ static ssize_t show_fan_div(struct device *dev, struct device_attribute *attr,
|
|||
|
||||
/* Note: we save and restore the fan minimum here, because its value is
|
||||
determined in part by the fan divisor. This follows the principle of
|
||||
least suprise; the user doesn't expect the fan minimum to change just
|
||||
least surprise; the user doesn't expect the fan minimum to change just
|
||||
because the divisor changed. */
|
||||
static ssize_t store_fan_div(struct device *dev, struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ FAN_TO_REG(long rpm, int div)
|
|||
#define TEMP1_TO_REG(val) (SENSORS_LIMIT(((val) < 0 ? (val)+0x100*1000 \
|
||||
: (val)) / 1000, 0, 0xff))
|
||||
#define TEMP1_FROM_REG(val) (((val) & 0x80 ? (val)-0x100 : (val)) * 1000)
|
||||
/* for temp2 and temp3, because they need addtional resolution */
|
||||
/* for temp2 and temp3, because they need additional resolution */
|
||||
#define TEMP_ADD_FROM_REG(val1, val2) \
|
||||
((((val1) & 0x80 ? (val1)-0x100 \
|
||||
: (val1)) * 1000) + ((val2 & 0x80) ? 500 : 0))
|
||||
|
|
|
|||
|
|
@ -1921,7 +1921,7 @@ static void w83793_update_nonvolatile(struct device *dev)
|
|||
struct w83793_data *data = i2c_get_clientdata(client);
|
||||
int i, j;
|
||||
/*
|
||||
They are somewhat "stable" registers, and to update them everytime
|
||||
They are somewhat "stable" registers, and to update them every time
|
||||
takes so much time, it's just not worthy. Update them in a long
|
||||
interval to avoid exception.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue