[PATCH 1/2] drm/msm: simplify getting .driver_data

Wolfram Sang wsa at the-dreams.de
Fri Mar 22 08:32:01 UTC 2019


> > -	struct platform_device *pdev = to_platform_device(dev);
> > -	struct msm_gpu *gpu = platform_get_drvdata(pdev);
> > +	struct msm_gpu *gpu = dev_get_drvdata(dev);
> 
> Nice simplification :-)
> 
> Do you catch these with Coccinelle?

Yes, the previous series had the script in the cover letter, but for
this small series, I thought it was too much. I haven't changed it since
then.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190322/e9b592c6/attachment.sig>


More information about the dri-devel mailing list