]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: imx: Use temporary variable to hold pins
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Nov 2023 16:06:28 +0000 (18:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 1 Dec 2023 14:00:20 +0000 (15:00 +0100)
commit26ea8229e7adb508133b078790990486c1657cc7
tree9c6849c3d981ff778431b191ea36e20e29aabc01
parent271e6a04775d867c9d59cb3c493bebc7970b128e
pinctrl: imx: Use temporary variable to hold pins

The pins are allocated from the heap, but in order to pass
them as constant object, we need to use non-constant pointer.
Achieve this by using a temporary variable.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231129161459.1002323-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c