Skip to content

Commit 05eec0c

Browse files
dhavalrshahgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 92d5f4c commit 05eec0c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/misc/isl29003.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static int __isl29003_read_reg(struct i2c_client *client,
7878
u32 reg, u8 mask, u8 shift)
7979
{
8080
struct isl29003_data *data = i2c_get_clientdata(client);
81+
8182
return (data->reg_cache[reg] & mask) >> shift;
8283
}
8384

@@ -160,6 +161,7 @@ static int isl29003_get_power_state(struct i2c_client *client)
160161
{
161162
struct isl29003_data *data = i2c_get_clientdata(client);
162163
u8 cmdreg = data->reg_cache[ISL29003_REG_COMMAND];
164+
163165
return ~cmdreg & ISL29003_ADC_PD;
164166
}
165167

@@ -196,6 +198,7 @@ static ssize_t isl29003_show_range(struct device *dev,
196198
struct device_attribute *attr, char *buf)
197199
{
198200
struct i2c_client *client = to_i2c_client(dev);
201+
199202
return sprintf(buf, "%i\n", isl29003_get_range(client));
200203
}
201204

@@ -231,6 +234,7 @@ static ssize_t isl29003_show_resolution(struct device *dev,
231234
char *buf)
232235
{
233236
struct i2c_client *client = to_i2c_client(dev);
237+
234238
return sprintf(buf, "%d\n", isl29003_get_resolution(client));
235239
}
236240

@@ -264,6 +268,7 @@ static ssize_t isl29003_show_mode(struct device *dev,
264268
struct device_attribute *attr, char *buf)
265269
{
266270
struct i2c_client *client = to_i2c_client(dev);
271+
267272
return sprintf(buf, "%d\n", isl29003_get_mode(client));
268273
}
269274

@@ -298,6 +303,7 @@ static ssize_t isl29003_show_power_state(struct device *dev,
298303
char *buf)
299304
{
300305
struct i2c_client *client = to_i2c_client(dev);
306+
301307
return sprintf(buf, "%d\n", isl29003_get_power_state(client));
302308
}
303309

@@ -361,6 +367,7 @@ static int isl29003_init_client(struct i2c_client *client)
361367
* if one of the reads fails, we consider the init failed */
362368
for (i = 0; i < ARRAY_SIZE(data->reg_cache); i++) {
363369
int v = i2c_smbus_read_byte_data(client, i);
370+
364371
if (v < 0)
365372
return -ENODEV;
366373

0 commit comments

Comments
 (0)