]> git.karo-electronics.de Git - linux-beck.git/commit
[media] media: rc: nuvoton: eliminate member pdev from struct nvt_dev
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 25 Oct 2016 19:23:37 +0000 (17:23 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 19:03:32 +0000 (17:03 -0200)
commitb24ccccaee5e6a73f461b1ca7bbb55d3dfc24a2d
tree7a5024af86170551dbf79c9c58366e2c85cc9a43
parente7cd17a29d72868aa5cfbbd4de7c54a28ed30ff0
[media] media: rc: nuvoton: eliminate member pdev from struct nvt_dev

Member pdev of struct nvt_dev is needed only to access &pdev->dev.
We can get rid of this it by using rdev->dev.parent instead
(both point to the same struct device).

Setting rdev->dev.parent can be removed from the probe function
as this is done by devm_rc_allocate_device now.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h