mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
gpio: kunit: shrink initialization code
We always start the swnode lookup test cases by registering the provider and consumer drivers. Factor it out into a common function and use the .init() callback of the kunit suite struct. Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260610-gpio-kunit-swnode-hog-v1-1-37b3bf37096c@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
79db21e77c
commit
069547f9d8
1 changed files with 13 additions and 13 deletions
Loading…
Add table
Add a link
Reference in a new issue