2020-07-28 23:06:17

by Daniel Campello

[permalink] [raw]
Subject: [PATCH v2 04/14] iio: sx9310: Remove acpi and of table macros

Avoids unused warnings due to acpi/of table macros.

Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Daniel Campello <[email protected]>
---

Changes in v2:
- Added #include <linux/mod_devicetable.h>

drivers/iio/proximity/sx9310.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/iio/proximity/sx9310.c b/drivers/iio/proximity/sx9310.c
index 108d82ba81146e..04b646ae8a1009 100644
--- a/drivers/iio/proximity/sx9310.c
+++ b/drivers/iio/proximity/sx9310.c
@@ -15,8 +15,8 @@
#include <linux/i2c.h>
#include <linux/irq.h>
#include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
#include <linux/module.h>
-#include <linux/of.h>
#include <linux/pm.h>
#include <linux/regmap.h>
#include <linux/slab.h>
@@ -1051,8 +1051,8 @@ MODULE_DEVICE_TABLE(i2c, sx9310_id);
static struct i2c_driver sx9310_driver = {
.driver = {
.name = "sx9310",
- .acpi_match_table = ACPI_PTR(sx9310_acpi_match),
- .of_match_table = of_match_ptr(sx9310_of_match),
+ .acpi_match_table = sx9310_acpi_match,
+ .of_match_table = sx9310_of_match,
.pm = &sx9310_pm_ops,
},
.probe = sx9310_probe,
--
2.28.0.163.g6104cc2f0b6-goog


2020-07-29 06:55:55

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH v2 04/14] iio: sx9310: Remove acpi and of table macros

On Wed, Jul 29, 2020 at 2:05 AM Daniel Campello <[email protected]> wrote:
>
> Avoids unused warnings due to acpi/of table macros.

Reviewed-by: Andy Shevchenko <[email protected]>

> Reported-by: kbuild test robot <[email protected]>
> Signed-off-by: Daniel Campello <[email protected]>
> ---
>
> Changes in v2:
> - Added #include <linux/mod_devicetable.h>
>
> drivers/iio/proximity/sx9310.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iio/proximity/sx9310.c b/drivers/iio/proximity/sx9310.c
> index 108d82ba81146e..04b646ae8a1009 100644
> --- a/drivers/iio/proximity/sx9310.c
> +++ b/drivers/iio/proximity/sx9310.c
> @@ -15,8 +15,8 @@
> #include <linux/i2c.h>
> #include <linux/irq.h>
> #include <linux/kernel.h>
> +#include <linux/mod_devicetable.h>
> #include <linux/module.h>
> -#include <linux/of.h>
> #include <linux/pm.h>
> #include <linux/regmap.h>
> #include <linux/slab.h>
> @@ -1051,8 +1051,8 @@ MODULE_DEVICE_TABLE(i2c, sx9310_id);
> static struct i2c_driver sx9310_driver = {
> .driver = {
> .name = "sx9310",
> - .acpi_match_table = ACPI_PTR(sx9310_acpi_match),
> - .of_match_table = of_match_ptr(sx9310_of_match),
> + .acpi_match_table = sx9310_acpi_match,
> + .of_match_table = sx9310_of_match,
> .pm = &sx9310_pm_ops,
> },
> .probe = sx9310_probe,
> --
> 2.28.0.163.g6104cc2f0b6-goog
>


--
With Best Regards,
Andy Shevchenko

2020-07-29 08:41:30

by Stephen Boyd

[permalink] [raw]
Subject: Re: [PATCH v2 04/14] iio: sx9310: Remove acpi and of table macros

Quoting Daniel Campello (2020-07-28 16:05:10)
> Avoids unused warnings due to acpi/of table macros.
>
> Reported-by: kbuild test robot <[email protected]>
> Signed-off-by: Daniel Campello <[email protected]>
> ---

Reviewed-by: Stephen Boyd <[email protected]>