summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-aw2013.c
diff options
context:
space:
mode:
authorZhu Wang <wangzhu9@huawei.com>2023-08-08 13:11:08 +0200
committerLee Jones <lee@kernel.org>2023-08-17 14:28:25 +0200
commit3d590af89b1e61568395ab37e9b5f88fd711f638 (patch)
tree88d469356117404bf057bf4512b06df3889b37f3 /drivers/leds/leds-aw2013.c
parentdt-bindings: leds: Add gpio-line-names to PCA9532 GPIO (diff)
downloadlinux-3d590af89b1e61568395ab37e9b5f88fd711f638.tar.xz
linux-3d590af89b1e61568395ab37e9b5f88fd711f638.zip
leds: Remove redundant of_match_ptr()
The driver depends on CONFIG_OF, so it is not necessary to use of_match_ptr() here. We remove both CONFIG_OF and of_match_ptr() here. Signed-off-by: Zhu Wang <wangzhu9@huawei.com> Link: https://lore.kernel.org/r/20230808111108.24262-1-wangzhu9@huawei.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/leds-aw2013.c')
-rw-r--r--drivers/leds/leds-aw2013.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-aw2013.c b/drivers/leds/leds-aw2013.c
index 59765640b70f..a562c01c9775 100644
--- a/drivers/leds/leds-aw2013.c
+++ b/drivers/leds/leds-aw2013.c
@@ -420,7 +420,7 @@ MODULE_DEVICE_TABLE(of, aw2013_match_table);
static struct i2c_driver aw2013_driver = {
.driver = {
.name = "leds-aw2013",
- .of_match_table = of_match_ptr(aw2013_match_table),
+ .of_match_table = aw2013_match_table,
},
.probe = aw2013_probe,
.remove = aw2013_remove,