Skip to content

Commit 2071b95

Browse files
tachelaviniagregkh
authored andcommitted
drivers/base: use tabs where possible in code indentation
Linux kernel coding style require that tabs should be used instead of spaces for code indentation. Problem found using checkpatch.pl script. Signed-off-by: Lavinia Tache <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 74642c6 commit 2071b95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/base/soc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ struct device *soc_device_to_device(struct soc_device *soc_dev)
4343
}
4444

4545
static umode_t soc_attribute_mode(struct kobject *kobj,
46-
struct attribute *attr,
47-
int index)
46+
struct attribute *attr,
47+
int index)
4848
{
4949
struct device *dev = container_of(kobj, struct device, kobj);
5050
struct soc_device *soc_dev = container_of(dev, struct soc_device, dev);
@@ -60,7 +60,7 @@ static umode_t soc_attribute_mode(struct kobject *kobj,
6060
return attr->mode;
6161
if ((attr == &dev_attr_soc_id.attr)
6262
&& (soc_dev->attr->soc_id != NULL))
63-
return attr->mode;
63+
return attr->mode;
6464

6565
/* Unknown or unfilled attribute. */
6666
return 0;
@@ -117,7 +117,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr
117117

118118
soc_dev = kzalloc(sizeof(*soc_dev), GFP_KERNEL);
119119
if (!soc_dev) {
120-
ret = -ENOMEM;
120+
ret = -ENOMEM;
121121
goto out1;
122122
}
123123

@@ -135,7 +135,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr
135135
} while (ret == -EAGAIN);
136136

137137
if (ret)
138-
goto out2;
138+
goto out2;
139139

140140
soc_dev->attr = soc_dev_attr;
141141
soc_dev->dev.bus = &soc_bus_type;

0 commit comments

Comments
 (0)