]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform: cznic: turris-omnia-mcu: Make poweroff and wakeup code optional
authorMarek BehĂșn <kabel@kernel.org>
Fri, 19 Jul 2024 08:57:55 +0000 (10:57 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 7 Aug 2024 12:43:54 +0000 (14:43 +0200)
commit74a22fced5a012c57f56d1cf7ea926cc366a2a3a
tree008eeb0ba2bb34092627ee8571991d2f86395490
parentc7da0d4e33ce262dbed7b9ae4cf013aad0f541f6
platform: cznic: turris-omnia-mcu: Make poweroff and wakeup code optional

Make the system poweroff and RTC wakeup part of the driver optional,
under a boolean config option. Move the dependency to RTC_CLASS to this
new option.

This makes the turris-omnia-mcu driver available for compilation even if
RTC_CLASS is disabled.

Fixes: ed46f1f7731d ("platform: cznic: turris-omnia-mcu: fix Kconfig dependencies")
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Link: https://lore.kernel.org/r/20240719085756.30598-4-kabel@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/platform/cznic/Kconfig
drivers/platform/cznic/Makefile
drivers/platform/cznic/turris-omnia-mcu-base.c
drivers/platform/cznic/turris-omnia-mcu.h