]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: iris: fix the order of compat strings
authorVikash Garodia <quic_vgarodia@quicinc.com>
Thu, 24 Apr 2025 08:50:46 +0000 (14:20 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 2 May 2025 06:52:05 +0000 (08:52 +0200)
Fix the order of compatible strings to make it in alpha numeric order.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/qcom/iris/iris_probe.c

index 7cd8650fbe9c09598670530103e3d5edf32953e7..fa3b9c9b1493e4165f8c6d9c1cc0b76d3dfa9b7b 100644 (file)
@@ -335,16 +335,16 @@ static const struct dev_pm_ops iris_pm_ops = {
 };
 
 static const struct of_device_id iris_dt_match[] = {
+#if (!IS_ENABLED(CONFIG_VIDEO_QCOM_VENUS))
+       {
+               .compatible = "qcom,sm8250-venus",
+               .data = &sm8250_data,
+       },
+#endif
        {
                .compatible = "qcom,sm8550-iris",
                .data = &sm8550_data,
        },
-#if (!IS_ENABLED(CONFIG_VIDEO_QCOM_VENUS))
-               {
-                       .compatible = "qcom,sm8250-venus",
-                       .data = &sm8250_data,
-               },
-#endif
        {
                .compatible = "qcom,sm8650-iris",
                .data = &sm8650_data,