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 <lavinia.tachee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
74642c6cd0
commit
2071b9502d
|
@ -43,8 +43,8 @@ struct device *soc_device_to_device(struct soc_device *soc_dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
static umode_t soc_attribute_mode(struct kobject *kobj,
|
static umode_t soc_attribute_mode(struct kobject *kobj,
|
||||||
struct attribute *attr,
|
struct attribute *attr,
|
||||||
int index)
|
int index)
|
||||||
{
|
{
|
||||||
struct device *dev = container_of(kobj, struct device, kobj);
|
struct device *dev = container_of(kobj, struct device, kobj);
|
||||||
struct soc_device *soc_dev = container_of(dev, struct soc_device, dev);
|
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,
|
||||||
return attr->mode;
|
return attr->mode;
|
||||||
if ((attr == &dev_attr_soc_id.attr)
|
if ((attr == &dev_attr_soc_id.attr)
|
||||||
&& (soc_dev->attr->soc_id != NULL))
|
&& (soc_dev->attr->soc_id != NULL))
|
||||||
return attr->mode;
|
return attr->mode;
|
||||||
|
|
||||||
/* Unknown or unfilled attribute. */
|
/* Unknown or unfilled attribute. */
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -117,7 +117,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr
|
||||||
|
|
||||||
soc_dev = kzalloc(sizeof(*soc_dev), GFP_KERNEL);
|
soc_dev = kzalloc(sizeof(*soc_dev), GFP_KERNEL);
|
||||||
if (!soc_dev) {
|
if (!soc_dev) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto out1;
|
goto out1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr
|
||||||
} while (ret == -EAGAIN);
|
} while (ret == -EAGAIN);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out2;
|
goto out2;
|
||||||
|
|
||||||
soc_dev->attr = soc_dev_attr;
|
soc_dev->attr = soc_dev_attr;
|
||||||
soc_dev->dev.bus = &soc_bus_type;
|
soc_dev->dev.bus = &soc_bus_type;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user