]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: cy8c95x0: Drop unneeded casting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Feb 2025 09:51:18 +0000 (11:51 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Feb 2025 23:17:26 +0000 (00:17 +0100)
The 'arg' variable in cy8c95x0_gpio_get_pincfg() is already type of u16.
No need to cast it, so drop unneeded casting.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/20250205095243.512292-9-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c

index 3f2bdaea58b419889e15670ef2b51598075fdac0..4b683401cae110211573313e7cc938973ca6dde1 100644 (file)
@@ -839,7 +839,7 @@ static int cy8c95x0_gpio_get_pincfg(struct cy8c95x0_pinctrl *chip,
        if (param == PIN_CONFIG_OUTPUT_ENABLE)
                arg = !arg;
 
-       *config = pinconf_to_config_packed(param, (u16)arg);
+       *config = pinconf_to_config_packed(param, arg);
        return 0;
 }