drm/drv: DOC: Add driver example code
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 25 Feb 2019 14:42:28 +0000 (15:42 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Mon, 4 Mar 2019 14:23:34 +0000 (15:23 +0100)
commitde99f0600a79eca4b9de0fc6aadbf9079cc8f096
tree9d208a6e5fe27b0a8c594a7229e0e82ba485364d
parent9b1f1b6b784302950f7eed73011df85501509e1d
drm/drv: DOC: Add driver example code

Add driver example that shows how devm_drm_dev_init() can be used.

v2: Expand docs (Sam, Daniel)

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190225144232.20761-4-noralf@tronnes.org
drivers/gpu/drm/drm_drv.c