Skip to contentSkip to conversation

iio: core: remove extra semi-colon from devm_iio_device_register() macro

PATCH Applied Lars Engebretsen 3 participants 3 messages Apr 15, 2020 – Apr 18, 2020 IIO

lore
Share & tools
lore
#0 lore raw

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
index d63884a54939..76ba7c9fd3e0 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
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 commit 63b19547cc3d9 ("iio: Use macro magic to avoid manual assign of driver_module").

Quoted 21 lines

---
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
index d63884a54939..76ba7c9fd3e0 100644
@@ -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);
maintainer Applied
#2 lore raw
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 commit 63b19547cc3d9 ("iio: Use macro magic to avoid manual assign of driver_module").

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

---
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
index d63884a54939..76ba7c9fd3e0 100644
@@ -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);