Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1186538 > unrolled thread

[PATCH 0/2] Add DT binding support for mmc35240

Started byJandy Gou <qingsong.gou@ck-telecom.com>
First post2015-07-17 09:50 +0200
Last post2015-07-17 10:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] Add DT binding support for mmc35240 Jandy Gou <qingsong.gou@ck-telecom.com> - 2015-07-17 09:50 +0200
    [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding Jandy Gou <qingsong.gou@ck-telecom.com> - 2015-07-17 09:50 +0200
    Re: [PATCH 0/2] Add DT binding support for mmc35240 Daniel Baluta <daniel.baluta@intel.com> - 2015-07-17 10:30 +0200

#1186538 — [PATCH 0/2] Add DT binding support for mmc35240

FromJandy Gou <qingsong.gou@ck-telecom.com>
Date2015-07-17 09:50 +0200
Subject[PATCH 0/2] Add DT binding support for mmc35240
Message-ID<pN8z7-7r6-15@gated-at.bofh.it>
Add basic DT binding for mmc35240
Add DT binding doc for mmc35240

Jandy Gou (2):
  iio: magnetometer: mmc35240: Add DT binding
  iio: magnetometer: mmc35240: Add DT binding doc

 .../devicetree/bindings/iio/magnetometer/mmc35240.txt       | 13 +++++++++++++
 drivers/iio/magnetometer/mmc35240.c                         |  7 +++++++
 2 files changed, 20 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt

-- 
1.9.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1186539 — [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding

FromJandy Gou <qingsong.gou@ck-telecom.com>
Date2015-07-17 09:50 +0200
Subject[PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding
Message-ID<pN8z8-7r6-17@gated-at.bofh.it>
In reply to#1186538
Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
---
 drivers/iio/magnetometer/mmc35240.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c
index 7a2ea71..9bc542d 100644
--- a/drivers/iio/magnetometer/mmc35240.c
+++ b/drivers/iio/magnetometer/mmc35240.c
@@ -550,6 +550,12 @@ static const struct dev_pm_ops mmc35240_pm_ops = {
 	SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume)
 };
 
+static const struct of_device_id mmc35240_of_match[] = {
+	{ .compatible = "memsic,mmc35240", },
+	{ }
+};
+MODULE_DEVICE_TABLE(of, mmc35240_of_match);
+
 static const struct acpi_device_id mmc35240_acpi_match[] = {
 	{"MMC35240", 0},
 	{ },
@@ -565,6 +571,7 @@ MODULE_DEVICE_TABLE(i2c, mmc35240_id);
 static struct i2c_driver mmc35240_driver = {
 	.driver = {
 		.name = MMC35240_DRV_NAME,
+		.of_match_table = mmc35240_of_match,
 		.pm = &mmc35240_pm_ops,
 		.acpi_match_table = ACPI_PTR(mmc35240_acpi_match),
 	},
-- 
1.9.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1186556

FromDaniel Baluta <daniel.baluta@intel.com>
Date2015-07-17 10:30 +0200
Message-ID<pN9bP-8pa-5@gated-at.bofh.it>
In reply to#1186538
On Fri, Jul 17, 2015 at 10:35 AM, Jandy Gou <qingsong.gou@ck-telecom.com> wrote:
> Add basic DT binding for mmc35240
> Add DT binding doc for mmc35240
>
> Jandy Gou (2):
>   iio: magnetometer: mmc35240: Add DT binding
>   iio: magnetometer: mmc35240: Add DT binding doc
>
>  .../devicetree/bindings/iio/magnetometer/mmc35240.txt       | 13 +++++++++++++
>  drivers/iio/magnetometer/mmc35240.c                         |  7 +++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt

Looks good to me but you will also need to CC devicetree@vger.kernel.org.

thanks,
Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web