Searched hist:f134c9cd9ce829cc66d4d32c57b76de1aab54fe9 (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/gpu/drm/ |
H A D | drm_encoder.c | diff f134c9cd9ce829cc66d4d32c57b76de1aab54fe9 Mon Jul 11 19:38:33 CEST 2022 Maxime Ripard <maxime@cerno.tech> drm/encoder: Introduce drmm_encoder_init
The DRM-managed function to register an encoder is drmm_encoder_alloc() and its variants, which will allocate the underlying structure and initialisation the encoder.
However, we might want to separate the structure creation and the encoder initialisation, for example if the structure is shared across multiple DRM entities, for example an encoder and a connector.
Let's create an helper to only initialise an encoder that would be passed as an argument.
Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20220711173939.1132294-4-maxime@cerno.tech
|
/linux/include/drm/ |
H A D | drm_encoder.h | diff f134c9cd9ce829cc66d4d32c57b76de1aab54fe9 Mon Jul 11 19:38:33 CEST 2022 Maxime Ripard <maxime@cerno.tech> drm/encoder: Introduce drmm_encoder_init
The DRM-managed function to register an encoder is drmm_encoder_alloc() and its variants, which will allocate the underlying structure and initialisation the encoder.
However, we might want to separate the structure creation and the encoder initialisation, for example if the structure is shared across multiple DRM entities, for example an encoder and a connector.
Let's create an helper to only initialise an encoder that would be passed as an argument.
Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20220711173939.1132294-4-maxime@cerno.tech
|