pinctrl: renesas: Mark local variable with const in ->set_mux()

We are not going to change pins in the ->set_mux() callback. Mark
the local variable with a const qualifier. While at it, make it
also unsigned.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20231204160033.1872569-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Andy Shevchenko 2023-12-04 17:56:32 +02:00 committed by Linus Walleij
parent 253bad7f04
commit 731b30f6aa
2 changed files with 2 additions and 2 deletions

View file

@ -273,7 +273,7 @@ static int rzg2l_pinctrl_set_mux(struct pinctrl_dev *pctldev,
struct function_desc *func;
unsigned int i, *psel_val;
struct group_desc *group;
int *pins;
const unsigned int *pins;
func = pinmux_generic_get_function(pctldev, func_selector);
if (!func)

View file

@ -165,7 +165,7 @@ static int rzv2m_pinctrl_set_mux(struct pinctrl_dev *pctldev,
struct function_desc *func;
unsigned int i, *psel_val;
struct group_desc *group;
int *pins;
const unsigned int *pins;
func = pinmux_generic_get_function(pctldev, func_selector);
if (!func)