]> 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)
commit04b6f4c7e434d840f4ba6ee355b4ebd080c53f82
tree7a5024af86170551dbf79c9c58366e2c85cc9a43
parent3ed405091983d39e992370c561a65e925a77c4be
[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