diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2015-12-30 14:39:34 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-25 15:44:14 -0200 |
commit | 7a89836e994eaad7a17ae293ea1cd2b5597d2b4e (patch) | |
tree | f960f6ce41fd1f27d761d080e9f27840e29fa3ae /drivers/media/rc | |
parent | 3def9ad6d3066e597d0ce86801a81eedb130b04a (diff) | |
download | linux-stable-7a89836e994eaad7a17ae293ea1cd2b5597d2b4e.tar.gz linux-stable-7a89836e994eaad7a17ae293ea1cd2b5597d2b4e.tar.bz2 linux-stable-7a89836e994eaad7a17ae293ea1cd2b5597d2b4e.zip |
[media] nuvoton-cir: simplify nvt_select_logical_ dev
Use nvt_cr_write to simplify nvt_select_logical_ dev.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/nuvoton-cir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index 62c82c54ec82..2539d4f10a0c 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -107,8 +107,7 @@ static inline void nvt_efm_disable(struct nvt_dev *nvt) */ static inline void nvt_select_logical_dev(struct nvt_dev *nvt, u8 ldev) { - outb(CR_LOGICAL_DEV_SEL, nvt->cr_efir); - outb(ldev, nvt->cr_efdr); + nvt_cr_write(nvt, ldev, CR_LOGICAL_DEV_SEL); } /* write val to cir config register */ |