Skip to content

Commit 7dbf1ea

Browse files
ck-telecomjic23
authored andcommitted
iio: magnetometer: mmc35240: Add DT binding
Signed-off-by: Jandy Gou <[email protected]> Acked-by: Daniel Baluta <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 2363331 commit 7dbf1ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/iio/magnetometer/mmc35240.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,12 @@ static const struct dev_pm_ops mmc35240_pm_ops = {
550550
SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume)
551551
};
552552

553+
static const struct of_device_id mmc35240_of_match[] = {
554+
{ .compatible = "memsic,mmc35240", },
555+
{ }
556+
};
557+
MODULE_DEVICE_TABLE(of, mmc35240_of_match);
558+
553559
static const struct acpi_device_id mmc35240_acpi_match[] = {
554560
{"MMC35240", 0},
555561
{ },
@@ -565,6 +571,7 @@ MODULE_DEVICE_TABLE(i2c, mmc35240_id);
565571
static struct i2c_driver mmc35240_driver = {
566572
.driver = {
567573
.name = MMC35240_DRV_NAME,
574+
.of_match_table = mmc35240_of_match,
568575
.pm = &mmc35240_pm_ops,
569576
.acpi_match_table = ACPI_PTR(mmc35240_acpi_match),
570577
},

0 commit comments

Comments
 (0)