rk312x:lcdc:fix winx_set_addr register config err
authoryxj <yxj@rock-chips.com>
Tue, 7 Oct 2014 09:37:15 +0000 (17:37 +0800)
committeryxj <yxj@rock-chips.com>
Tue, 7 Oct 2014 09:41:09 +0000 (17:41 +0800)
drivers/video/rockchip/lcdc/rk312x_lcdc.c

index 959a0ea839d35fdfe68e5a3b5cfe42f788ec3a92..b41ab99bfad53ae925f029e26d76789319637dce 100755 (executable)
@@ -207,7 +207,7 @@ static int rk312x_lcdc_disable_irq(struct lcdc_device *lcdc_dev)
 }
 
 
-static int win1_set_addr(struct lcdc_device *lcdc_dev, u32 addr)
+static int win0_set_addr(struct lcdc_device *lcdc_dev, u32 addr)
 {
        spin_lock(&lcdc_dev->reg_lock);
        lcdc_writel(lcdc_dev, WIN0_YRGB_MST, addr);
@@ -218,7 +218,7 @@ static int win1_set_addr(struct lcdc_device *lcdc_dev, u32 addr)
        return 0;
 }
 
-static int win0_set_addr(struct lcdc_device *lcdc_dev, u32 addr)
+static int win1_set_addr(struct lcdc_device *lcdc_dev, u32 addr)
 {
        spin_lock(&lcdc_dev->reg_lock);
        if (lcdc_dev->soc_type == VOP_RK3036)