Skip to contentSkip to conversation

media: rc: nuvoton-cir: simplify nvt_select_logical_ dev

PATCH In review Heiner Kallweit 1 participant 1 message Dec 30, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/16 media: rc: nuvoton-cir: simplify nvt_select_logical_ dev

Use nvt_cr_write to simplify nvt_select_logical_ dev.

---
 drivers/media/rc/nuvoton-cir.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/rc/nuvoton-cir.c +1 -2
index 62c82c5..2539d4f 100644
@@ -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 */
Signature · 1 line
2.6.4