media: adv7180: Also check for "adi,force-bt656-4"
authorFabio Estevam <festevam@denx.de>
Thu, 24 Oct 2024 11:37:52 +0000 (08:37 -0300)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 8 Nov 2024 12:38:10 +0000 (13:38 +0100)
According to adv7180.yaml, the correct property name is
"adi,force-bt656-4".

Expand the check to also test against the "adi,force-bt656-4" compatible
string.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/adv7180.c

index 819ff9f..ff7dfa0 100644 (file)
@@ -1440,7 +1440,8 @@ static int adv7180_probe(struct i2c_client *client)
                return ret;
        }
 
-       if (of_property_read_bool(np, "adv,force-bt656-4"))
+       if (of_property_read_bool(np, "adv,force-bt656-4") ||
+           of_property_read_bool(np, "adi,force-bt656-4"))
                state->force_bt656_4 = true;
 
        if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) {