Re: [PATCH v2 14/30] drm: omapdrm: dss: Don't unnecessarily cast to dev to pdev and back

2018-02-13 Thread Sebastian Reichel
Hi, On Tue, Feb 13, 2018 at 02:00:32PM +0200, Laurent Pinchart wrote: > The dss_unbind() function casts the struct device pointer to a struct > platform_device, only to later use the struct device pointer from > platform_device. Don't cast at all. > > Signed-off-by: Laurent Pinchart

[PATCH v2 14/30] drm: omapdrm: dss: Don't unnecessarily cast to dev to pdev and back

2018-02-13 Thread Laurent Pinchart
The dss_unbind() function casts the struct device pointer to a struct platform_device, only to later use the struct device pointer from platform_device. Don't cast at all. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dss.c | 4 +--- 1 file