diff options
| author | Lavinia Tache <lavinia.tachee@gmail.com> | 2015-03-08 16:33:44 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-25 09:37:35 -0400 |
| commit | 2071b9502dadffd22ac1bc31c68728e2783ec3ac (patch) | |
| tree | 33a5df90dca8c1169c9ef19a4df72bd409cb7075 /drivers/base | |
| parent | 74642c6cd088e124c3cccbd5cb2f54984d6d4e1a (diff) | |
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>
Diffstat (limited to 'drivers/base')
| -rw-r--r-- | drivers/base/soc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/base/soc.c b/drivers/base/soc.c index 72b5e7280d14..39fca01c8fa1 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c | |||
| @@ -43,8 +43,8 @@ struct device *soc_device_to_device(struct soc_device *soc_dev) | |||
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | static umode_t soc_attribute_mode(struct kobject *kobj, | 45 | static umode_t soc_attribute_mode(struct kobject *kobj, |
| 46 | struct attribute *attr, | 46 | struct attribute *attr, |
| 47 | int index) | 47 | int index) |
| 48 | { | 48 | { |
| 49 | struct device *dev = container_of(kobj, struct device, kobj); | 49 | struct device *dev = container_of(kobj, struct device, kobj); |
| 50 | struct soc_device *soc_dev = container_of(dev, struct soc_device, dev); | 50 | 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, | |||
| 60 | return attr->mode; | 60 | return attr->mode; |
| 61 | if ((attr == &dev_attr_soc_id.attr) | 61 | if ((attr == &dev_attr_soc_id.attr) |
| 62 | && (soc_dev->attr->soc_id != NULL)) | 62 | && (soc_dev->attr->soc_id != NULL)) |
| 63 | return attr->mode; | 63 | return attr->mode; |
| 64 | 64 | ||
| 65 | /* Unknown or unfilled attribute. */ | 65 | /* Unknown or unfilled attribute. */ |
| 66 | return 0; | 66 | return 0; |
| @@ -117,7 +117,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr | |||
| 117 | 117 | ||
| 118 | soc_dev = kzalloc(sizeof(*soc_dev), GFP_KERNEL); | 118 | soc_dev = kzalloc(sizeof(*soc_dev), GFP_KERNEL); |
| 119 | if (!soc_dev) { | 119 | if (!soc_dev) { |
| 120 | ret = -ENOMEM; | 120 | ret = -ENOMEM; |
| 121 | goto out1; | 121 | goto out1; |
| 122 | } | 122 | } |
| 123 | 123 | ||
| @@ -135,7 +135,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr | |||
| 135 | } while (ret == -EAGAIN); | 135 | } while (ret == -EAGAIN); |
| 136 | 136 | ||
| 137 | if (ret) | 137 | if (ret) |
| 138 | goto out2; | 138 | goto out2; |
| 139 | 139 | ||
| 140 | soc_dev->attr = soc_dev_attr; | 140 | soc_dev->attr = soc_dev_attr; |
| 141 | soc_dev->dev.bus = &soc_bus_type; | 141 | soc_dev->dev.bus = &soc_bus_type; |
