From: yxj Date: Tue, 22 Apr 2014 13:00:59 +0000 (+0800) Subject: rk32 dp: add debugfs for edid X-Git-Tag: firefly_0821_release~5464 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=deefdc5c55bc3ed1b58affe81299707389e2f7ee;p=firefly-linux-kernel-4.4.55.git rk32 dp: add debugfs for edid --- diff --git a/drivers/video/rockchip/transmitter/rk32_dp.c b/drivers/video/rockchip/transmitter/rk32_dp.c index 86b596bc1607..4138161bd3cd 100644 --- a/drivers/video/rockchip/transmitter/rk32_dp.c +++ b/drivers/video/rockchip/transmitter/rk32_dp.c @@ -1229,13 +1229,12 @@ static int edp_dpcd_debugfs_show(struct seq_file *s, void *v) static int edp_edid_debugfs_show(struct seq_file *s, void *v) { - int i = 0; - unsigned char buf[12]; struct rk32_edp *edp = s->private; if (!edp) { dev_err(edp->dev, "no edp device!\n"); return -ENODEV; } + rk32_edp_read_edid(edp); seq_printf(s,"edid"); return 0; } diff --git a/drivers/video/rockchip/transmitter/rk32_dp_reg.c b/drivers/video/rockchip/transmitter/rk32_dp_reg.c index b1f8c18266f5..0af48ae3e9a9 100644 --- a/drivers/video/rockchip/transmitter/rk32_dp_reg.c +++ b/drivers/video/rockchip/transmitter/rk32_dp_reg.c @@ -1,8 +1,5 @@ /* - * Samsung DP (Display port) register interface driver. - * - * Copyright (C) 2012 Samsung Electronics Co., Ltd. - * Author: Jingoo Han + *RockChip DP (Display port) register interface driver. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -16,7 +13,6 @@ #include #include #include - #include "rk32_dp.h"