Files
erofs-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 <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Cc: Eric Anholt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2020-04-28 15:15:59 +02:00
..
…
…
…
2020-04-28 15:15:52 +02:00
2020-04-28 15:15:59 +02:00
2020-04-28 15:15:59 +02:00
2020-04-28 15:15:52 +02:00
2020-04-28 15:15:59 +02:00
2020-04-28 15:15:52 +02:00
2020-04-28 15:15:52 +02:00