From: Heiner Kallweit Date: Wed, 30 Dec 2015 16:39:34 +0000 (-0200) Subject: [media] nuvoton-cir: simplify nvt_select_logical_ dev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a89836e994eaad7a17ae293ea1cd2b5597d2b4e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] nuvoton-cir: simplify nvt_select_logical_ dev Use nvt_cr_write to simplify nvt_select_logical_ dev. Signed-off-by: Heiner Kallweit Signed-off-by: Mauro Carvalho Chehab --- 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 */