[PATCH -next] mfd: tc3589x: Remove redundant of_match_ptr()

Ruan Jinjie posted 1 patch 2 years, 1 month ago
drivers/mfd/tc3589x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH -next] mfd: tc3589x: Remove redundant of_match_ptr()
Posted by Ruan Jinjie 2 years, 1 month ago
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/mfd/tc3589x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c
index 16df64e3c0be..28125599fea4 100644
--- a/drivers/mfd/tc3589x.c
+++ b/drivers/mfd/tc3589x.c
@@ -483,7 +483,7 @@ static struct i2c_driver tc3589x_driver = {
 	.driver = {
 		.name	= "tc3589x",
 		.pm	= pm_sleep_ptr(&tc3589x_dev_pm_ops),
-		.of_match_table = of_match_ptr(tc3589x_match),
+		.of_match_table = tc3589x_match,
 	},
 	.probe		= tc3589x_probe,
 	.remove		= tc3589x_remove,
-- 
2.34.1
Re: (subset) [PATCH -next] mfd: tc3589x: Remove redundant of_match_ptr()
Posted by Lee Jones 2 years ago
On Tue, 08 Aug 2023 21:00:02 +0800, Ruan Jinjie wrote:
> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
> 
> 

Applied, thanks!

[1/1] mfd: tc3589x: Remove redundant of_match_ptr()
      commit: 85356d665015540338ce84cfeba6c37704cd1b22

--
Lee Jones [李琼斯]