ARM: dts: freescale: Use new media bus type macros
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 15 Jun 2022 22:14:07 +0000 (01:14 +0300)
committerShawn Guo <shawnguo@kernel.org>
Wed, 25 Jan 2023 02:11:22 +0000 (10:11 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul-14x14-evk.dtsi

index c83e64a..7275a13 100644 (file)
@@ -2,6 +2,8 @@
 //
 // Copyright (C) 2015 Freescale Semiconductor, Inc.
 
+#include <dt-bindings/media/video-interfaces.h>
+
 / {
        chosen {
                stdout-path = &uart1;
        port {
                parallel_from_ov5640: endpoint {
                        remote-endpoint = <&ov5640_to_parallel>;
-                       bus-type = <5>; /* Parallel bus */
+                       bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
                };
        };
 };