[PATCH -next 7/8] mfd: lochnagar-i2c: remove redundant of_match_ptr()

Zhu Wang posted 8 patches 2 years, 1 month ago
[PATCH -next 7/8] mfd: lochnagar-i2c: remove redundant of_match_ptr()
Posted by Zhu Wang 2 years, 1 month ago
The driver depends on CONFIG_OF, so it is not necessary to use
of_match_ptr() here. We remove of_match_ptr() here.

Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
---
 drivers/mfd/lochnagar-i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/lochnagar-i2c.c b/drivers/mfd/lochnagar-i2c.c
index 3c8843117080..59092f839d65 100644
--- a/drivers/mfd/lochnagar-i2c.c
+++ b/drivers/mfd/lochnagar-i2c.c
@@ -379,7 +379,7 @@ static int lochnagar_i2c_probe(struct i2c_client *i2c)
 static struct i2c_driver lochnagar_i2c_driver = {
 	.driver = {
 		.name = "lochnagar",
-		.of_match_table = of_match_ptr(lochnagar_of_match),
+		.of_match_table = lochnagar_of_match,
 		.suppress_bind_attrs = true,
 	},
 	.probe = lochnagar_i2c_probe,
-- 
2.17.1
Re: [PATCH -next 7/8] mfd: lochnagar-i2c: remove redundant of_match_ptr()
Posted by Charles Keepax 2 years, 1 month ago
On Tue, Aug 08, 2023 at 09:00:22PM +0800, Zhu Wang wrote:
> The driver depends on CONFIG_OF, so it is not necessary to use
> of_match_ptr() here. We remove of_match_ptr() here.
> 
> Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles