drm/v3d: Delete v3d_dev->dev
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 But also a bit a bikeshed, so feel free to ignore. 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-10-daniel.vetter@ffwll.ch
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#include "uapi/drm/v3d_drm.h"
|
||||
|
||||
struct clk;
|
||||
struct device;
|
||||
struct platform_device;
|
||||
struct reset_control;
|
||||
|
||||
@@ -47,7 +46,6 @@ struct v3d_dev {
|
||||
int ver;
|
||||
bool single_irq_line;
|
||||
|
||||
struct device *dev;
|
||||
struct platform_device *pdev;
|
||||
void __iomem *hub_regs;
|
||||
void __iomem *core_regs[3];
|
||||
|
Reference in New Issue
Block a user