mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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:
parent
253bad7f04
commit
731b30f6aa
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user