]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: cy8c95x0: Move driver data to the local variable in ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Feb 2026 18:06:55 +0000 (19:06 +0100)
committerLinus Walleij <linusw@kernel.org>
Thu, 26 Feb 2026 22:42:29 +0000 (23:42 +0100)
commit8434c691193b9f812a446833c657fb2431aa94fd
tree1ee95ae348a055e6a0edba734a86ce1bbdbf66fd
parent014884732095b982412d13d3220c3fe8483b9b3e
pinctrl: cy8c95x0: Move driver data to the local variable in ->probe()

For all these years of driver existence the driver_data has been used
only as a raw material for other fields in the struct cy8c95x0_pinctrl.
Move it from the structure to be just a local variable in ->probe().
Later, if ever need arises, we may reconsider that.

While at it, drop an unneeded validation and replace uintptr_t with plain
unsigned long which is more readable and works in the same way.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/pinctrl-cy8c95x0.c