diff mbox series

[6/7] dt-bindings:iio:magnetometer:memsic,mmc35240: move to trivial-devices.yaml

Message ID 20201031182922.743153-7-jic23@kernel.org
State New
Headers show
Series dt-bindings:iio: Move to trivial-devices.yaml from txt files. | expand

Commit Message

Jonathan Cameron Oct. 31, 2020, 6:29 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Extremely simple binding so no need to maintain a separate file.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jandy Gou <qingsong.gou@ck-telecom.com>
---
 .../bindings/iio/magnetometer/mmc35240.txt          | 13 -------------
 .../devicetree/bindings/trivial-devices.yaml        |  2 ++
 2 files changed, 2 insertions(+), 13 deletions(-)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
deleted file mode 100644
index a01235c7fa15..000000000000
--- a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
+++ /dev/null
@@ -1,13 +0,0 @@ 
-* MEMSIC MMC35240 magnetometer sensor
-
-Required properties:
-
-  - compatible : should be "memsic,mmc35240"
-  - reg : the I2C address of the magnetometer
-
-Example:
-
-mmc35240@30 {
-        compatible = "memsic,mmc35240";
-        reg = <0x30>;
-};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 015905312a0f..172bf7e19401 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -134,6 +134,8 @@  properties:
           - maxim,max31730
             # mCube 3-axis 8-bit digital accelerometer
           - mcube,mc3230
+            # MEMSIC magnetometer
+          - memsic,mmc35240
             # MEMSIC 2-axis 8-bit digital accelerometer
           - memsic,mxc6225
             # Measurement Specialities I2C temperature and humidity sensor