I2C: Fix indentation of lm87 driver
PATCH 1/1 I2C: Fix indentation of lm87 driver
Hi Greg,
This trivial patch fixes indentation in the lm87 driver. I need this 'cause I'll soon post patches affecting these portions of code, and I'd like these patches to be easily readable.
Please apply, thanks.
Signed-off-by Jean Delvare <[email protected]>
drivers/i2c/chips/lm87.c renamed from drivers/i2c/chips/lm87.c.orig +10 -10
@@ -317,20 +317,20 @@static void set_temp_low (struct device *dev,const char *buf,int nr) { -struct i2c_client *client =to_i2c_client (dev); -struct lm87_data *data =i2c_get_clientdata (client); -long val =simple_strtol (buf,NULL ,10 ); - data->temp_low[nr] =TEMP_TO_REG (val); -lm87_write_value (client,LM87_REG_TEMP_LOW [nr], data->temp_low[nr]); +struct i2c_client *client =to_i2c_client (dev); +struct lm87_data *data =i2c_get_clientdata (client); +long val =simple_strtol (buf,NULL ,10 ); + data->temp_low[nr] =TEMP_TO_REG (val); +lm87_write_value (client,LM87_REG_TEMP_LOW [nr], data->temp_low[nr]); }static void set_temp_high (struct device *dev,const char *buf,int nr) { -struct i2c_client *client =to_i2c_client (dev); -struct lm87_data *data =i2c_get_clientdata (client); -long val =simple_strtol (buf,NULL ,10 ); - data->temp_high[nr] =TEMP_TO_REG (val); -lm87_write_value (client,LM87_REG_TEMP_HIGH [nr], data->temp_high[nr]); +struct i2c_client *client =to_i2c_client (dev); +struct lm87_data *data =i2c_get_clientdata (client); +long val =simple_strtol (buf,NULL ,10 ); + data->temp_high[nr] =TEMP_TO_REG (val); +lm87_write_value (client,LM87_REG_TEMP_HIGH [nr], data->temp_high[nr]); }#define set_temp (offset) \
Signature · 1 line
Jean Delvare
Greg KH
AppliedPATCH 1/1 I2C: Fix indentation of lm87 driver
Quoted 7 lines · Jean Delvare
Hi Greg,
This trivial patch fixes indentation in the lm87 driver. I need this 'cause I'll soon post patches affecting these portions of code, and I'd like these patches to be easily readable.
Please apply, thanks.
Applied, thanks.
greg k-h