diff options
author | Maxime Ripard <maxime@cerno.tech> | 2022-12-01 16:11:41 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-12-08 09:56:55 +0100 |
commit | a9143c5852a7a13d60ef685d27f9617f2a52338b (patch) | |
tree | 1a7db5ecdb9d53e58eaf78632e6c394cf7ef90c2 /drivers/of/fdt.c | |
parent | 57a84a97bbda3a4bb38534e9e37634fa9f58c7fc (diff) | |
download | linux-a9143c5852a7a13d60ef685d27f9617f2a52338b.tar.gz linux-a9143c5852a7a13d60ef685d27f9617f2a52338b.tar.bz2 linux-a9143c5852a7a13d60ef685d27f9617f2a52338b.zip |
drm/tests: helpers: Allow for a custom device struct to be allocated
The current helper to allocate a DRM device doesn't allow for any
subclassing by drivers, which is going to be troublesome as we work on
getting some kunit testing on atomic modesetting code.
Let's use a similar pattern to the other allocation helpers by providing
the structure size and offset as arguments.
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-10-4615a663a84a@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'drivers/of/fdt.c')
0 files changed, 0 insertions, 0 deletions