Re: [PATCH] pinctrl: msm: Add check for pinctrl group is valid

From: Linus Walleij
Date: Mon May 25 2020 - 05:02:28 EST


On Tue, May 19, 2020 at 3:39 AM Bjorn Andersson
<bjorn.andersson@xxxxxxxxxx> wrote:

> @Linus, we started off with something similar for GPIOs and ended up
> with the logic in the core code. Should we somehow try to do the same
> for pinctrl?

msm_pingroup_is_valid() looks very reusable but I'm afraid I do not
understand the implicit assumptions around it, but I guess yes,
if it can be properly documented etc.

Yours,
Linus Walleij