staging: iio: fix some formatting issues
Subsystems (4)
PATCH 1/1 staging: iio: fix some formatting issues
fixing:
CHECK: Alignment should match open parenthesis #1351: FILE: drivers/staging/iio/addac/adt7316.c:1351:
CHECK: Alignment should match open parenthesis #1378: FILE: drivers/staging/iio/addac/adt7316.c:1378:
--- drivers/staging/iio/addac/adt7316.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/iio/addac/adt7316.c +6 -6
@@ -1348,9 +1348,9 @@ static ssize_t adt7316_show_in_analog_temp_offset(struct device *dev, }static ssize_t adt7316_store_in_analog_temp_offset (struct device *dev, -struct device_attribute *attr, -const char *buf, -size_t len) +struct device_attribute *attr, +const char *buf, +size_t len) {struct iio_dev *dev_info =dev_to_iio_dev (dev);struct adt7316_chip_info *chip =iio_priv (dev_info);
@@ -1375,9 +1375,9 @@ static ssize_t adt7316_show_ex_analog_temp_offset(struct device *dev, }static ssize_t adt7316_store_ex_analog_temp_offset (struct device *dev, -struct device_attribute *attr, -const char *buf, -size_t len) +struct device_attribute *attr, +const char *buf, +size_t len) {struct iio_dev *dev_info =dev_to_iio_dev (dev);struct adt7316_chip_info *chip =iio_priv (dev_info);
Signature · 1 line
2.7.4
Hi Wang,
Nice patch for a start. Yet, I think there is room for some improvement.
Quoted 1 line · Wang Qing
fixing:
If you wish, you may add here that this style check is reported by checkpatch.
Quoted 2 lines
CHECK: Alignment should match open parenthesis #1351: FILE:
drivers/staging/iio/addac/adt7316.c:1351:
Checkpatch warns that commit log lines starting with '#' are dropped by git as comments. Is this intentional?
Quoted 3 lines
CHECK: Alignment should match open parenthesis #1378: FILE:
drivers/staging/iio/addac/adt7316.c:1378:
Same warning here.
Its probably not a requirement, but the subject line could be more specific about where the changes are for. Maybe start with
staging: iio: addac:
or even
staging: iio: addac: adt7316:
Regards,
Marcelo
Quoted 39 lines
Signed-off-by Wang Qing <[email protected]>--- drivers/staging/iio/addac/adt7316.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)drivers/staging/iio/addac/adt7316.c +6
-6@@ -1348,9 +1348,9 @@ static ssize_t adt7316_show_in_analog_temp_offset(struct device *dev, }static ssize_t adt7316_store_in_analog_temp_offset (struct device *dev, -struct device_attribute *attr, -const char *buf, -size_t len) +struct device_attribute *attr, +const char *buf, +size_t len) {struct iio_dev *dev_info =dev_to_iio_dev (dev);struct adt7316_chip_info *chip =iio_priv (dev_info);@@ -1375,9 +1375,9 @@ static ssize_t adt7316_show_ex_analog_temp_offset(struct device *dev, }static ssize_t adt7316_store_ex_analog_temp_offset (struct device *dev, -struct device_attribute *attr, -const char *buf, -size_t len) +struct device_attribute *attr, +const char *buf, +size_t len) {struct iio_dev *dev_info =dev_to_iio_dev (dev);struct adt7316_chip_info *chip =iio_priv (dev_info);Signature · 1 line
2.7.4