]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform: cznic: turris-omnia-mcu: Refactor requesting MCU interrupt
authorMarek Behún <kabel@kernel.org>
Tue, 4 Feb 2025 13:14:11 +0000 (14:14 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 20 Mar 2025 16:56:56 +0000 (17:56 +0100)
commitee7f8ed72990f28657b5bf598e695fcf4633f4ed
tree6b8eb55f54529396b76e2c914a787109d5fb8c61
parent2124055fb5c6554cab0fdd7a09235526cacaac23
platform: cznic: turris-omnia-mcu: Refactor requesting MCU interrupt

Refactor the code that gets and requests the TRNG MCU interrupt in the
TRNG part of the driver into a helper function and put it into the GPIO
part of the driver.

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/platform/cznic/turris-omnia-mcu-gpio.c
drivers/platform/cznic/turris-omnia-mcu-trng.c
drivers/platform/cznic/turris-omnia-mcu.h