diff options
| author | 2015-12-30 14:39:34 -0200 | |
|---|---|---|
| committer | 2016-01-25 15:44:14 -0200 | |
| commit | 7a89836e994eaad7a17ae293ea1cd2b5597d2b4e (patch) | |
| tree | f960f6ce41fd1f27d761d080e9f27840e29fa3ae | |
| parent | [media] nuvoton-cir: use request_muxed_region for accessing EFM registers (diff) | |
[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>
| -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 */ |
