[media] nuvoton-cir: simplify nvt_select_logical_ dev
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 30 Dec 2015 16:39:34 +0000 (14:39 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 17:44:14 +0000 (15:44 -0200)
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>
drivers/media/rc/nuvoton-cir.c

index 62c82c54ec8262fb199de92f7b6dd341e06b2842..2539d4f10a0c6d1b8f65437ece875bcd9ded5bbb 100644 (file)
@@ -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 */