[PATCH] drivers: edac: add missing spaces after ','

hanyu001@208suo.com posted 1 patch 2 years, 6 months ago
drivers/edac/edac_device_sysfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] drivers: edac: add missing spaces after ','
Posted by hanyu001@208suo.com 2 years, 6 months ago
Fixes checkpatch.pl error

./drivers/edac/edac_device_sysfs.c:114: ERROR: space required after that 
',' (ctx:VxV)
./drivers/edac/edac_device_sysfs.c:114: ERROR: space required after that 
',' (ctx:VxV)
./drivers/edac/edac_device_sysfs.c:147: ERROR: space required after that 
',' (ctx:VxV)
./drivers/edac/edac_device_sysfs.c:147: ERROR: space required after that 
',' (ctx:VxV)
./drivers/edac/edac_device_sysfs.c:147: ERROR: space required after that 
',' (ctx:VxV)

Signed-off-by: maqimei <2433033762@qq.com>
---
  drivers/edac/edac_device_sysfs.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/edac/edac_device_sysfs.c 
b/drivers/edac/edac_device_sysfs.c
index 05d4353..f6d42bc 100644
--- a/drivers/edac/edac_device_sysfs.c
+++ b/drivers/edac/edac_device_sysfs.c
@@ -111,7 +111,7 @@ struct ctl_info_attribute {
  };

  #define to_ctl_info(k) container_of(k, struct edac_device_ctl_info, 
kobj)
-#define to_ctl_info_attr(a) container_of(a,struct 
ctl_info_attribute,attr)
+#define to_ctl_info_attr(a) container_of(a, struct ctl_info_attribute, 
attr)

  /* Function to 'show' fields from the edac_dev 'ctl_info' structure */
  static ssize_t edac_dev_ctl_info_show(struct kobject *kobj,
@@ -144,7 +144,7 @@ static ssize_t edac_dev_ctl_info_store(struct 
kobject *kobj,
      .store = edac_dev_ctl_info_store
  };

-#define CTL_INFO_ATTR(_name,_mode,_show,_store)        \
+#define CTL_INFO_ATTR(_name, _mode, _show, _store)        \
  static struct ctl_info_attribute attr_ctl_info_##_name = {      \
      .attr = {.name = __stringify(_name), .mode = _mode },   \
      .show   = _show,                                        \