]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mipi-dbi: Add driver_private member to struct mipi_dbi_dev
authorNoralf Trønnes <noralf@tronnes.org>
Sun, 27 Feb 2022 12:47:12 +0000 (13:47 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 28 Feb 2022 09:29:33 +0000 (10:29 +0100)
commitda06dba4b72247ad493b1bad2c0078ef5d7f0f61
treea85f111d293fd3108708f31cc706dc59666d76d9
parenta80ff784ac2abcee460eb463c5719ce22f906921
drm/mipi-dbi: Add driver_private member to struct mipi_dbi_dev

devm_drm_dev_alloc() can't allocate structures that embed a structure
which then again embeds drm_device. Workaround this by adding a
driver_private pointer to struct mipi_dbi_dev which the driver can use for
its additional state.

v3:
- Add documentation

Acked-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220227124713.39766-5-noralf@tronnes.org
include/drm/drm_mipi_dbi.h