ARM: dts: omap: Use new media bus type macros
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 15 Jun 2022 22:14:08 +0000 (01:14 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 19 Jan 2023 07:58:57 +0000 (09:58 +0200)
Now that a header exists with macros for the media interface bus-type
values, replace hardcoding numerical constants with the corresponding
macros in the DT sources.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Message-Id: <20220615221410.27459-5-laurent.pinchart@ideasonboard.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-n900.dts

index 6ba2e8f..c97c72d 100644 (file)
@@ -9,6 +9,7 @@
 #include "omap34xx.dtsi"
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/leds/common.h>
+#include <dt-bindings/media/video-interfaces.h>
 
 /*
  * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
 
                        csi_isp: endpoint {
                                remote-endpoint = <&csi_cam1>;
-                               bus-type = <3>; /* CCP2 */
+                               bus-type = <MEDIA_BUS_TYPE_CCP2>;
                                clock-lanes = <1>;
                                data-lanes = <0>;
                                lane-polarity = <0 0>;
 
                port {
                        csi_cam1: endpoint {
-                               bus-type = <3>; /* CCP2 */
+                               bus-type = <MEDIA_BUS_TYPE_CCP2>;
                                strobe = <1>;
                                clock-inv = <0>;
                                crc = <1>;