Commit 44bbe87e authored by Steven Cole's avatar Steven Cole Committed by Greg Kroah-Hartman

[PATCH] Spelling fixes for drivers/i2c.

 Here are some spelling corrections for drivers/i2c.

 occured -> occurred
 intialization -> initialization
 Everytime -> Every time
 transfering -> transferring
 relevent -> relevant
 continous -> continuous
 neccessary -> necessary
 explicitely -> explicitly
 Celcius -> Celsius
 differenciate -> differentiate
Signed-off-by: default avatarSteven Cole <elenstev@mesatop.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ec5ce552
...@@ -49,7 +49,7 @@ static int i2c_debug=0; ...@@ -49,7 +49,7 @@ static int i2c_debug=0;
/* /*
* Generate a start condition on the i2c bus. * Generate a start condition on the i2c bus.
* *
* returns after the start condition has occured * returns after the start condition has occurred
*/ */
static void pca_start(struct i2c_algo_pca_data *adap) static void pca_start(struct i2c_algo_pca_data *adap)
{ {
...@@ -64,7 +64,7 @@ static void pca_start(struct i2c_algo_pca_data *adap) ...@@ -64,7 +64,7 @@ static void pca_start(struct i2c_algo_pca_data *adap)
/* /*
* Generate a repeated start condition on the i2c bus * Generate a repeated start condition on the i2c bus
* *
* return after the repeated start condition has occured * return after the repeated start condition has occurred
*/ */
static void pca_repeated_start(struct i2c_algo_pca_data *adap) static void pca_repeated_start(struct i2c_algo_pca_data *adap)
{ {
......
...@@ -695,7 +695,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){ ...@@ -695,7 +695,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){
dev->irq = iic_force_poll ? -1 : ocp->def->irq; dev->irq = iic_force_poll ? -1 : ocp->def->irq;
if (dev->irq >= 0){ if (dev->irq >= 0){
/* Disable interrupts until we finish intialization, /* Disable interrupts until we finish initialization,
assumes level-sensitive IRQ setup... assumes level-sensitive IRQ setup...
*/ */
iic_interrupt_mode(dev, 0); iic_interrupt_mode(dev, 0);
......
...@@ -85,7 +85,7 @@ iop3xx_i2c_enable(struct i2c_algo_iop3xx_data *iop3xx_adap) ...@@ -85,7 +85,7 @@ iop3xx_i2c_enable(struct i2c_algo_iop3xx_data *iop3xx_adap)
u32 cr = IOP3XX_ICR_GCD | IOP3XX_ICR_SCLEN | IOP3XX_ICR_UE; u32 cr = IOP3XX_ICR_GCD | IOP3XX_ICR_SCLEN | IOP3XX_ICR_UE;
/* /*
* Everytime unit enable is asserted, GPOD needs to be cleared * Every time unit enable is asserted, GPOD needs to be cleared
* on IOP321 to avoid data corruption on the bus. * on IOP321 to avoid data corruption on the bus.
*/ */
#ifdef CONFIG_ARCH_IOP321 #ifdef CONFIG_ARCH_IOP321
......
...@@ -534,7 +534,7 @@ static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c, struct i2c_msg *msgs, int ...@@ -534,7 +534,7 @@ static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c, struct i2c_msg *msgs, int
/* s3c24xx_i2c_xfer /* s3c24xx_i2c_xfer
* *
* first port of call from the i2c bus code when an message needs * first port of call from the i2c bus code when an message needs
* transfering across the i2c bus. * transferring across the i2c bus.
*/ */
static int s3c24xx_i2c_xfer(struct i2c_adapter *adap, static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
......
...@@ -440,7 +440,7 @@ pwm_reg(2); ...@@ -440,7 +440,7 @@ pwm_reg(2);
/* /*
* That function checks the cases where the fan reading is not * That function checks the cases where the fan reading is not
* relevent. It is used to provide 0 as fan reading when the fan is * relevant. It is used to provide 0 as fan reading when the fan is
* not supposed to run * not supposed to run
*/ */
static int trust_fan_readings(struct adm1031_data *data, int chan) static int trust_fan_readings(struct adm1031_data *data, int chan)
......
...@@ -121,7 +121,7 @@ static int ds1621_write_value(struct i2c_client *client, u8 reg, u16 value) ...@@ -121,7 +121,7 @@ static int ds1621_write_value(struct i2c_client *client, u8 reg, u16 value)
static void ds1621_init_client(struct i2c_client *client) static void ds1621_init_client(struct i2c_client *client)
{ {
int reg = ds1621_read_value(client, DS1621_REG_CONF); int reg = ds1621_read_value(client, DS1621_REG_CONF);
/* switch to continous conversion mode */ /* switch to continuous conversion mode */
reg &= ~ DS1621_REG_CONFIG_1SHOT; reg &= ~ DS1621_REG_CONFIG_1SHOT;
/* setup output polarity */ /* setup output polarity */
...@@ -303,7 +303,7 @@ static struct ds1621_data *ds1621_update_client(struct device *dev) ...@@ -303,7 +303,7 @@ static struct ds1621_data *ds1621_update_client(struct device *dev)
data->temp_max = ds1621_read_value(client, data->temp_max = ds1621_read_value(client,
DS1621_REG_TEMP_MAX); DS1621_REG_TEMP_MAX);
/* reset alarms if neccessary */ /* reset alarms if necessary */
new_conf = data->conf; new_conf = data->conf;
if (data->temp < data->temp_min) if (data->temp < data->temp_min)
new_conf &= ~DS1621_ALARM_TEMP_LOW; new_conf &= ~DS1621_ALARM_TEMP_LOW;
......
...@@ -953,7 +953,7 @@ static int it87_detach_client(struct i2c_client *client) ...@@ -953,7 +953,7 @@ static int it87_detach_client(struct i2c_client *client)
return 0; return 0;
} }
/* The SMBus locks itself, but ISA access must be locked explicitely! /* The SMBus locks itself, but ISA access must be locked explicitly!
We don't want to lock the whole ISA bus, so we lock each client We don't want to lock the whole ISA bus, so we lock each client
separately. separately.
We ignore the IT87 BUSY flag at this moment - it could lead to deadlocks, We ignore the IT87 BUSY flag at this moment - it could lead to deadlocks,
...@@ -973,7 +973,7 @@ static int it87_read_value(struct i2c_client *client, u8 reg) ...@@ -973,7 +973,7 @@ static int it87_read_value(struct i2c_client *client, u8 reg)
return i2c_smbus_read_byte_data(client, reg); return i2c_smbus_read_byte_data(client, reg);
} }
/* The SMBus locks itself, but ISA access muse be locked explicitely! /* The SMBus locks itself, but ISA access muse be locked explicitly!
We don't want to lock the whole ISA bus, so we lock each client We don't want to lock the whole ISA bus, so we lock each client
separately. separately.
We ignore the IT87 BUSY flag at this moment - it could lead to deadlocks, We ignore the IT87 BUSY flag at this moment - it could lead to deadlocks,
......
...@@ -98,9 +98,9 @@ SENSORS_INSMOD_1(lm63); ...@@ -98,9 +98,9 @@ SENSORS_INSMOD_1(lm63);
* Conversions and various macros * Conversions and various macros
* For tachometer counts, the LM63 uses 16-bit values. * For tachometer counts, the LM63 uses 16-bit values.
* For local temperature and high limit, remote critical limit and hysteresis * For local temperature and high limit, remote critical limit and hysteresis
* value, it uses signed 8-bit values with LSB = 1 degree Celcius. * value, it uses signed 8-bit values with LSB = 1 degree Celsius.
* For remote temperature, low and high limits, it uses signed 11-bit values * For remote temperature, low and high limits, it uses signed 11-bit values
* with LSB = 0.125 degree Celcius, left-justified in 16-bit registers. * with LSB = 0.125 degree Celsius, left-justified in 16-bit registers.
*/ */
#define FAN_FROM_REG(reg) ((reg) == 0xFFFC || (reg) == 0 ? 0 : \ #define FAN_FROM_REG(reg) ((reg) == 0xFFFC || (reg) == 0 ? 0 : \
......
...@@ -670,7 +670,7 @@ static int lm78_detach_client(struct i2c_client *client) ...@@ -670,7 +670,7 @@ static int lm78_detach_client(struct i2c_client *client)
return 0; return 0;
} }
/* The SMBus locks itself, but ISA access must be locked explicitely! /* The SMBus locks itself, but ISA access must be locked explicitly!
We don't want to lock the whole ISA bus, so we lock each client We don't want to lock the whole ISA bus, so we lock each client
separately. separately.
We ignore the LM78 BUSY flag at this moment - it could lead to deadlocks, We ignore the LM78 BUSY flag at this moment - it could lead to deadlocks,
...@@ -689,7 +689,7 @@ static int lm78_read_value(struct i2c_client *client, u8 reg) ...@@ -689,7 +689,7 @@ static int lm78_read_value(struct i2c_client *client, u8 reg)
return i2c_smbus_read_byte_data(client, reg); return i2c_smbus_read_byte_data(client, reg);
} }
/* The SMBus locks itself, but ISA access muse be locked explicitely! /* The SMBus locks itself, but ISA access muse be locked explicitly!
We don't want to lock the whole ISA bus, so we lock each client We don't want to lock the whole ISA bus, so we lock each client
separately. separately.
We ignore the LM78 BUSY flag at this moment - it could lead to deadlocks, We ignore the LM78 BUSY flag at this moment - it could lead to deadlocks,
......
...@@ -80,7 +80,7 @@ SENSORS_INSMOD_1(lm83); ...@@ -80,7 +80,7 @@ SENSORS_INSMOD_1(lm83);
/* /*
* Conversions and various macros * Conversions and various macros
* The LM83 uses signed 8-bit values with LSB = 1 degree Celcius. * The LM83 uses signed 8-bit values with LSB = 1 degree Celsius.
*/ */
#define TEMP_FROM_REG(val) ((val) * 1000) #define TEMP_FROM_REG(val) ((val) * 1000)
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* Complete datasheets can be obtained from National's website at: * Complete datasheets can be obtained from National's website at:
* http://www.national.com/pf/LM/LM89.html * http://www.national.com/pf/LM/LM89.html
* http://www.national.com/pf/LM/LM99.html * http://www.national.com/pf/LM/LM99.html
* Note that there is no way to differenciate between both chips. * Note that there is no way to differentiate between both chips.
* *
* This driver also supports the LM86, another sensor chip made by * This driver also supports the LM86, another sensor chip made by
* National Semiconductor. It is exactly similar to the LM90 except it * National Semiconductor. It is exactly similar to the LM90 except it
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
* chips made by Maxim. These chips are similar to the LM86. Complete * chips made by Maxim. These chips are similar to the LM86. Complete
* datasheet can be obtained at Maxim's website at: * datasheet can be obtained at Maxim's website at:
* http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2578 * http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2578
* Note that there is no easy way to differenciate between the three * Note that there is no easy way to differentiate between the three
* variants. The extra address and features of the MAX6659 are not * variants. The extra address and features of the MAX6659 are not
* supported by this driver. * supported by this driver.
* *
...@@ -138,9 +138,9 @@ SENSORS_INSMOD_6(lm90, adm1032, lm99, lm86, max6657, adt7461); ...@@ -138,9 +138,9 @@ SENSORS_INSMOD_6(lm90, adm1032, lm99, lm86, max6657, adt7461);
/* /*
* Conversions and various macros * Conversions and various macros
* For local temperatures and limits, critical limits and the hysteresis * For local temperatures and limits, critical limits and the hysteresis
* value, the LM90 uses signed 8-bit values with LSB = 1 degree Celcius. * value, the LM90 uses signed 8-bit values with LSB = 1 degree Celsius.
* For remote temperatures and limits, it uses signed 11-bit values with * For remote temperatures and limits, it uses signed 11-bit values with
* LSB = 0.125 degree Celcius, left-justified in 16-bit registers. * LSB = 0.125 degree Celsius, left-justified in 16-bit registers.
*/ */
#define TEMP1_FROM_REG(val) ((val) * 1000) #define TEMP1_FROM_REG(val) ((val) * 1000)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment