From: xubilv Date: Wed, 19 Oct 2016 02:26:56 +0000 (+0800) Subject: video: rockchip: mipi: Solve the problem of compiler error when open the debug X-Git-Tag: firefly_0821_release~1374 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=58e952ec51fd9ffae5ddd8dc5eac994879d87339;p=firefly-linux-kernel-4.4.55.git video: rockchip: mipi: Solve the problem of compiler error when open the debug Change-Id: Ic74ca747df6dfc913bbf3a379f894635aef35919 Signed-off-by: xubilv --- diff --git a/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c b/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c index 135dcd6710c8..469e5c4580e4 100755 --- a/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c +++ b/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c @@ -1394,7 +1394,7 @@ ssize_t reg_proc_write(struct file *file, const char __user *buff, size_t count, while (*(++data) == ' ') ; i = 0; - MIPI_TRACE("****%d:%d\n", data-buf, count); + do { if (i > 31) { MIPI_TRACE("payload entry is larger than 32\n"); @@ -1523,7 +1523,7 @@ ssize_t reg_proc_write1(struct file *file, const char __user *buff, size_t count while (*(++data) == ' ') ; i = 0; - MIPI_TRACE("****%d:%d\n", data-buf, count); + do { if (i > 31) { MIPI_TRACE("payload entry is larger than 32\n");