mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
[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:
parent
3def9ad6d3
commit
7a89836e99
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user