]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: cafe-driver: use drvdata instead of back-casting from v4l2_device
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 17 Aug 2020 22:08:47 +0000 (00:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 29 Aug 2020 06:08:20 +0000 (08:08 +0200)
commit953e41153a16620f675eda6e7022fd5b3eb58fce
tree665ed751894b0c3008f722db2a78089e2c32085f
parent17621758e53f0e6bf1ac469cca2a59fa6457d205
media: cafe-driver: use drvdata instead of back-casting from v4l2_device

Since commit 95db3a60e065 ("[media] v4l: Add a media_device pointer
to the v4l2_device structure") the v4l core doesn't insist on using drvdata
itself.  Therefore we can use it ourselves, making things somewhat simpler.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/marvell-ccic/cafe-driver.c