Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: magnetometer: mmc35240: Add DT binding

Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Jandy Gou and committed by
Jonathan Cameron
7dbf1ea8 23633314

+7
+7
drivers/iio/magnetometer/mmc35240.c
··· 550 550 SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume) 551 551 }; 552 552 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 + 553 559 static const struct acpi_device_id mmc35240_acpi_match[] = { 554 560 {"MMC35240", 0}, 555 561 { }, ··· 571 565 static struct i2c_driver mmc35240_driver = { 572 566 .driver = { 573 567 .name = MMC35240_DRV_NAME, 568 + .of_match_table = mmc35240_of_match, 574 569 .pm = &mmc35240_pm_ops, 575 570 .acpi_match_table = ACPI_PTR(mmc35240_acpi_match), 576 571 },