gpio: vf610: update comment for i.MX8ULP and i.MX93 legacy compatibles

i.MX8ULP and i.MX93 legacy compatible strings use dual regs, while
new compatible strings use one reg. The "support old compatible strings"
is not clear to reflect the fact, so update it.

Suggested-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Peng Fan 2023-10-07 20:55:50 +08:00 committed by Bartosz Golaszewski
parent b57587f11f
commit 8a58cd577f

View file

@ -287,7 +287,10 @@ static int vf610_gpio_probe(struct platform_device *pdev)
dual_base = port->sdata->have_dual_base;
/* support old compatible strings */
/*
* Handle legacy compatible combinations which used two reg values
* for the i.MX8ULP and i.MX93.
*/
if (device_is_compatible(dev, "fsl,imx7ulp-gpio") &&
(device_is_compatible(dev, "fsl,imx93-gpio") ||
(device_is_compatible(dev, "fsl,imx8ulp-gpio"))))