diff options
author | Stephen Boyd <[email protected]> | 2024-07-18 14:05:04 -0700 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2024-07-29 15:33:12 -0700 |
commit | 5ac79730324c6f37106ce397586020ffe6e8e234 (patch) | |
tree | 0c8fec572ffdfea545dbd6cd4303965cf1a12e37 /lib/crypto/mpi/mpiutil.c | |
parent | 5c9dd72d8385c2b02c6e31a0f59f777d8a26a218 (diff) |
platform: Add test managed platform_device/driver APIs
Introduce KUnit resource wrappers around platform_driver_register(),
platform_device_alloc(), and platform_device_add() so that test authors
can register platform drivers/devices from their tests and have the
drivers/devices automatically be unregistered when the test is done.
This makes test setup code simpler when a platform driver or platform
device is needed. Add a few test cases at the same time to make sure the
APIs work as intended.
Cc: Brendan Higgins <[email protected]>
Reviewed-by: David Gow <[email protected]>
Cc: Rae Moar <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions