Re: [PATCH 2/3] gpio: atcgpio100: Add ATCGPIO100 GPIO driver
From: CL Wang
Date: Wed Dec 02 2026 - 01:16:31 EST
Hi Bart,
Thanks for the review.
> Uwe would probably say you should only pull in the individual headers that you require from include/linux/device-id/.
Dropped in v2.
>> + .flags = GPIO_GENERIC_READ_OUTPUT_REG_SET,
>> + };
> I think you could save even more code by using the gpio-regmap helper here instead. Could you see if that's possible here?
As discussed earlier, keeping gpio-mmio in v2.
>> + priv->chan_num = CONFIG_CHAN_NUM_GET(cfg);
>> + if (priv->chan_num > ATCGPIO_CHAN_NUM_MAX || !priv->chan_num) {
>> + dev_warn(&priv->pdev->dev,
> Use a local variable to store the adress of dev for better readability.
Okay, used a local variable to hold "&priv->pdev->dev" for better readability.
>> + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
> Use devm_kzalloc_obj(). Same elsewhere.
Applied in v2.
Best regards,
CL