Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: isl29003: Missing a blank line after declarations

Resolved all the missing a blank line after declarations checkpatch
warnings. Issue found by checkpatch.

Signed-off-by: Dhaval Shah <dhaval23031987@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dhaval Shah and committed by
Greg Kroah-Hartman
05eec0c9 92d5f4ca

+7
+7
drivers/misc/isl29003.c
··· 78 78 u32 reg, u8 mask, u8 shift) 79 79 { 80 80 struct isl29003_data *data = i2c_get_clientdata(client); 81 + 81 82 return (data->reg_cache[reg] & mask) >> shift; 82 83 } 83 84 ··· 161 160 { 162 161 struct isl29003_data *data = i2c_get_clientdata(client); 163 162 u8 cmdreg = data->reg_cache[ISL29003_REG_COMMAND]; 163 + 164 164 return ~cmdreg & ISL29003_ADC_PD; 165 165 } 166 166 ··· 198 196 struct device_attribute *attr, char *buf) 199 197 { 200 198 struct i2c_client *client = to_i2c_client(dev); 199 + 201 200 return sprintf(buf, "%i\n", isl29003_get_range(client)); 202 201 } 203 202 ··· 234 231 char *buf) 235 232 { 236 233 struct i2c_client *client = to_i2c_client(dev); 234 + 237 235 return sprintf(buf, "%d\n", isl29003_get_resolution(client)); 238 236 } 239 237 ··· 268 264 struct device_attribute *attr, char *buf) 269 265 { 270 266 struct i2c_client *client = to_i2c_client(dev); 267 + 271 268 return sprintf(buf, "%d\n", isl29003_get_mode(client)); 272 269 } 273 270 ··· 303 298 char *buf) 304 299 { 305 300 struct i2c_client *client = to_i2c_client(dev); 301 + 306 302 return sprintf(buf, "%d\n", isl29003_get_power_state(client)); 307 303 } 308 304 ··· 367 361 * if one of the reads fails, we consider the init failed */ 368 362 for (i = 0; i < ARRAY_SIZE(data->reg_cache); i++) { 369 363 int v = i2c_smbus_read_byte_data(client, i); 364 + 370 365 if (v < 0) 371 366 return -ENODEV; 372 367