iio: core: remove extra semi-colon from devm_iio_device_register() macro
PATCH v2 1/1 iio: core: remove extra semi-colon from devm_iio_device_register() macro
This change removes the semi-colon from the devm_iio_device_register() macro which seems to have been added by accident via commit 63b19547cc3d9 ("iio: Use macro magic to avoid manual assign of driver_module").
---
Changelog v1 -> v2:
* added commit change description
include/linux/iio/iio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/iio.h +1 -1
@@ -597,7 +597,7 @@ void iio_device_unregister(struct iio_dev *indio_dev);* 0 on success, negative error number on failure. */ #define devm_iio_device_register (dev, indio_dev) \ - __devm_iio_device_register((dev), (indio_dev), THIS_MODULE); + __devm_iio_device_register((dev), (indio_dev), THIS_MODULE)int __devm_iio_device_register (struct device *dev,struct iio_dev *indio_dev,struct module *this_mod);int iio_push_event (struct iio_dev *indio_dev,u64 ev_code,s64 timestamp);
Signature · 1 line
2.17.1
Quoted 4 lines · Lars Engebretsen
This change removes the semi-colon from the
devm_iio_device_register()macro which seems to have been added by accident via commit63b19547cc3d9("iio: Use macro magic to avoid manual assign ofdriver_module").
Quoted 21 lines
Signed-off-by Lars Engebretsen <[email protected]>---
Changelog v1 -> v2:
* added commit change descriptioninclude/linux/iio/iio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/iio/iio.h +1
-1@@ -597,7 +597,7 @@ void iio_device_unregister(struct iio_dev *indio_dev);* 0 on success, negative error number on failure. */ #define devm_iio_device_register (dev, indio_dev) \ - __devm_iio_device_register((dev), (indio_dev), THIS_MODULE); + __devm_iio_device_register((dev), (indio_dev), THIS_MODULE)int __devm_iio_device_register (struct device *dev,struct iio_dev *indio_dev,struct module *this_mod);int iio_push_event (struct iio_dev *indio_dev,u64 ev_code,s64 timestamp);
Quoted 7 lines · Alexandru
Quoted 4 lines · Lars Engebretsen
This change removes the semi-colon from the
devm_iio_device_register()macro which seems to have been added by accident via commit63b19547cc3d9("iio: Use macro magic to avoid manual assign ofdriver_module").Reviewed-by Alexandru Ardelean <[email protected]>
The above reference to where the bug was introduced should have been a Fixes: tag as that guides where this is backported to.
I made it so whilst applying.
Applied to the fixes-togreg branch of iio.git.
Thanks,
Jonathan
Quoted 22 lines
Quoted 22 lines
Signed-off-by Lars Engebretsen <[email protected]>---
Changelog v1 -> v2:
* added commit change descriptioninclude/linux/iio/iio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/iio/iio.h +1
-1@@ -597,7 +597,7 @@ void iio_device_unregister(struct iio_dev *indio_dev);* 0 on success, negative error number on failure. */ #define devm_iio_device_register (dev, indio_dev) \ - __devm_iio_device_register((dev), (indio_dev), THIS_MODULE); + __devm_iio_device_register((dev), (indio_dev), THIS_MODULE)int __devm_iio_device_register (struct device *dev,struct iio_dev *indio_dev,struct module *this_mod);int iio_push_event (struct iio_dev *indio_dev,u64 ev_code,s64 timestamp);