linux/drivers/gpu/drm/v3d
Daniel Vetter 0df3ac7657 drm/v3d: Delete v3d_dev->pdev
We already have it in v3d_dev->drm.dev with zero additional pointer
chasing. Personally I don't like duplicated pointers like this
because:
- reviewers need to check whether the pointer is for the same or
different objects if there's multiple
- compilers have an easier time too

To avoid having to pull in some big headers I implemented the casting
function as a macro instead of a static inline. Typechecking thanks to
container_of still assured.

But also a bit a bikeshed, so feel free to ignore.

v2: More parens for v3d_to_pdev macro (checkpatch)

Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415074034.175360-11-daniel.vetter@ffwll.ch
2020-04-28 15:15:59 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
v3d_bo.c drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap 2019-10-17 13:59:16 +02:00
v3d_debugfs.c drm/v3d: Delete v3d_dev->dev 2020-04-28 15:15:52 +02:00
v3d_drv.c drm/v3d: Delete v3d_dev->pdev 2020-04-28 15:15:59 +02:00
v3d_drv.h drm/v3d: Delete v3d_dev->pdev 2020-04-28 15:15:59 +02:00
v3d_fence.c drm/v3d: Add support for compute shader dispatch. 2019-04-18 09:54:10 -07:00
v3d_gem.c drm/v3d: Delete v3d_dev->dev 2020-04-28 15:15:52 +02:00
v3d_irq.c drm/v3d: Delete v3d_dev->pdev 2020-04-28 15:15:59 +02:00
v3d_mmu.c drm/v3d: Delete v3d_dev->dev 2020-04-28 15:15:52 +02:00
v3d_regs.h drm/v3d: Fix and extend MMU error handling. 2019-05-16 09:24:52 -07:00
v3d_sched.c drm/v3d: Delete v3d_dev->dev 2020-04-28 15:15:52 +02:00
v3d_trace.h drm/v3d: Add support for compute shader dispatch. 2019-04-18 09:54:10 -07:00
v3d_trace_points.c