[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>
This commit is contained in:
Heiner Kallweit 2015-12-30 14:39:34 -02:00 committed by Mauro Carvalho Chehab
parent 3def9ad6d3
commit 7a89836e99
1 changed files with 1 additions and 2 deletions

View 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 */