mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
drm/rockchip: lvds: remove unused code
Change-Id: Id579000e6b48a2bc6991abbb87e8e4099ec17d77 Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
@@ -611,7 +611,7 @@ static const struct rockchip_lvds_funcs rk3368_lvds_funcs = {
|
||||
.disable = rk3368_lvds_disable,
|
||||
};
|
||||
|
||||
static int rk3568_lvds_probe(struct rockchip_lvds *lvds)
|
||||
static int __maybe_unused rockchip_secondary_lvds_probe(struct rockchip_lvds *lvds)
|
||||
{
|
||||
if (lvds->dual_channel) {
|
||||
struct rockchip_lvds *secondary = NULL;
|
||||
@@ -638,37 +638,19 @@ static int rk3568_lvds_probe(struct rockchip_lvds *lvds)
|
||||
|
||||
static void rk3568_lvds_enable(struct rockchip_lvds *lvds)
|
||||
{
|
||||
if (lvds->id) {
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON3,
|
||||
RK3568_LVDS1_MODE_EN(1) |
|
||||
RK3568_LVDS1_P2S_EN(1) |
|
||||
RK3568_LVDS1_DCLK_INV_SEL(1));
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON0,
|
||||
RK3568_LVDS1_SELECT(lvds->format) |
|
||||
RK3568_LVDS1_MSBSEL(1));
|
||||
} else {
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON2,
|
||||
RK3568_LVDS0_MODE_EN(1) |
|
||||
RK3568_LVDS0_P2S_EN(1) |
|
||||
RK3568_LVDS0_DCLK_INV_SEL(1));
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON0,
|
||||
RK3568_LVDS0_SELECT(lvds->format) |
|
||||
RK3568_LVDS0_MSBSEL(1));
|
||||
}
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON2,
|
||||
RK3568_LVDS0_MODE_EN(1) | RK3568_LVDS0_P2S_EN(1) |
|
||||
RK3568_LVDS0_DCLK_INV_SEL(1));
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON0,
|
||||
RK3568_LVDS0_SELECT(lvds->format) | RK3568_LVDS0_MSBSEL(1));
|
||||
}
|
||||
|
||||
static void rk3568_lvds_disable(struct rockchip_lvds *lvds)
|
||||
{
|
||||
if (lvds->id)
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON3,
|
||||
RK3568_LVDS1_MODE_EN(0));
|
||||
else
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON2,
|
||||
RK3568_LVDS0_MODE_EN(0));
|
||||
regmap_write(lvds->grf, RK3568_GRF_VO_CON2, RK3568_LVDS0_MODE_EN(0));
|
||||
}
|
||||
|
||||
static const struct rockchip_lvds_funcs rk3568_lvds_funcs = {
|
||||
.probe = rk3568_lvds_probe,
|
||||
.enable = rk3568_lvds_enable,
|
||||
.disable = rk3568_lvds_disable,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user