]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: th1520: Fix pinconf return values
authorEmil Renner Berthing <emil.renner.berthing@canonical.com>
Fri, 11 Oct 2024 14:48:23 +0000 (16:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Oct 2024 19:27:41 +0000 (21:27 +0200)
commitca35d5d24574c7f49c77860fb0a1e54b74ac9561
treef7eead7195e6ac16660f9c42b92a29126a57f17a
parent2a85fc7044987d751f27d7f1e4423eebbcecc2c6
pinctrl: th1520: Fix pinconf return values

When Drew took over the pinctrl driver he must have changed
all the -ENOTSUPP returns into -EOPNOTSUPP. This subtle change
was most likely not spotted because it was never mentioned in the
changelog of the patchset, but it breaks all the places in the
pin control and GPIO frameworks where -ENOTSUPP is expected.

Fixes: bed5cd6f8a98 ("pinctrl: Add driver for the T-Head TH1520 SoC")
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Reviewed-by: Drew Fustini <dfustini@tenstorrent.com>
Tested-by: Drew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/20241011144826.381104-2-emil.renner.berthing@canonical.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-th1520.c