Staging: iio: Move export_symbol below its function
Subsystems (4)
PATCH 1/1 Staging: iio: Move export_symbol below its function
WARNING: "EXPORT_SYMBOL(foo); should immediately follow its function/variable"
That was found by running checkpatch.
Signed-off-by Melike Yurtoglu <[email protected]>
--- drivers/staging/iio/addac/adt7316.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/addac/adt7316.c +1 -1
@@ -2069,6 +2069,7 @@ static struct attribute_group adt7516_event_attribute_group = { };#ifdef CONFIG_PM_SLEEP +EXPORT_SYMBOL_GPL (adt7316_pm_ops);static int adt7316_disable (struct device *dev) {struct iio_dev *dev_info =dev_get_drvdata (dev);
@@ -2086,7 +2087,6 @@ static int adt7316_enable(struct device *dev) }SIMPLE_DEV_PM_OPS (adt7316_pm_ops, adt7316_disable, adt7316_enable); -EXPORT_SYMBOL_GPL (adt7316_pm_ops);#endif static const struct iio_info adt7316_info = {
Signature · 1 line
1.8.3.2
Hi Melike,
Quoted 22 lines · Melike Yurtoglu
WARNING: "
EXPORT_SYMBOL(foo); should immediately follow its function/variable"
That was found by running checkpatch.Signed-off-by Melike Yurtoglu <[email protected]>--- drivers/staging/iio/addac/adt7316.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/iio/addac/adt7316.c +1
-0@@ -2069,6 +2069,7 @@ static struct attribute_group adt7516_event_attribute_group = { };#ifdef CONFIG_PM_SLEEP +EXPORT_SYMBOL_GPL (adt7316_pm_ops);static int adt7316_disable (struct device *dev) {struct iio_dev *dev_info =dev_get_drvdata (dev);
drivers/staging/iio/addac/adt7316.c static int adt7316_enable(struct device *dev) · line 2089
Quoted 4 lines
drivers/staging/iio/addac/adt7316.c +0
-1@@ -2086,7 +2087,6 @@ static int adt7316_enable(struct device *dev) }SIMPLE_DEV_PM_OPS (adt7316_pm_ops, adt7316_disable, adt7316_enable); -EXPORT_SYMBOL_GPL (adt7316_pm_ops);
The EXPORT_SYMBOL() is rightly under the variable definition - adt7316_pm_ops. So why this cleanup?
Regards
Preeti U Murthy
Quoted 4 lines
drivers/staging/iio/addac/adt7316.c +0
-0#endif static const struct iio_info adt7316_info = {