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)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 25 Mar 2022 17:11:03 +0000 (17:11 +0000)
commit9d509325d97343cfb62ccd933c2dfd1b00187703
treef5c648592a7b4ef0c352df61b4765d1cda21f822
parent590a395165f16ceae7dd7e3aceb835963e28b5b3
drm/mipi-dbi: Add driver_private member to struct mipi_dbi_dev

commit 1e7e8e1 upstream.

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