]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: ssm3515: Remove redundant of_match_ptr()
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 11 Aug 2023 07:14:25 +0000 (15:14 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 13 Aug 2023 18:37:47 +0000 (19:37 +0100)
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com
Link: https://lore.kernel.org/r/20230811071426.2343133-5-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/codecs/ssm3515.c

index 008cb3eb575804de39ca26122e8f43febd061d84..8c6665677a17590a4988e3fcda402c1a9dbc531f 100644 (file)
@@ -437,7 +437,7 @@ MODULE_DEVICE_TABLE(of, ssm3515_of_match);
 static struct i2c_driver ssm3515_i2c_driver = {
        .driver = {
                .name = "ssm3515",
-               .of_match_table = of_match_ptr(ssm3515_of_match),
+               .of_match_table = ssm3515_of_match,
        },
        .probe = ssm3515_i2c_probe,
 };