]> git.baikalelectronics.ru Git - kernel.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)
commit1fae7468e91fed37b5d5ac1ab51946e01bd0a947
tree7a5024af86170551dbf79c9c58366e2c85cc9a43
parent3da3fe6c81ee89c2c4c8129e9a0a6aa487f29e62
[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