Skip to content

Commit 8a58cd5

Browse files
MrVanBartosz Golaszewski
authored andcommitted
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>
1 parent b57587f commit 8a58cd5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpio/gpio-vf610.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ static int vf610_gpio_probe(struct platform_device *pdev)
287287

288288
dual_base = port->sdata->have_dual_base;
289289

290-
/* support old compatible strings */
290+
/*
291+
* Handle legacy compatible combinations which used two reg values
292+
* for the i.MX8ULP and i.MX93.
293+
*/
291294
if (device_is_compatible(dev, "fsl,imx7ulp-gpio") &&
292295
(device_is_compatible(dev, "fsl,imx93-gpio") ||
293296
(device_is_compatible(dev, "fsl,imx8ulp-gpio"))))

0 commit comments

Comments
 (0)