From patchwork Mon May 8 11:54:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9716117 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7D4D660234 for ; Mon, 8 May 2017 11:54:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66067223C7 for ; Mon, 8 May 2017 11:54:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 596CF268AE; Mon, 8 May 2017 11:54:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EB588223C7 for ; Mon, 8 May 2017 11:54:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F4EA6E208; Mon, 8 May 2017 11:54:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.17.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6F166E208 for ; Mon, 8 May 2017 11:54:50 +0000 (UTC) Received: from [192.168.1.3] ([77.182.37.117]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MKIzC-1d9LPS1tHK-001ewn; Mon, 08 May 2017 13:54:40 +0200 To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Fengguang Wu , Thierry Reding From: SF Markus Elfring Subject: [PATCH] tinydrm: mipi-dbi: Use seq_putc() in mipi_dbi_debugfs_command_show() Message-ID: <2795b611-dfb9-eaf6-e04d-10e27ce96772@users.sourceforge.net> Date: Mon, 8 May 2017 13:54:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K0:/ZfsHP4WVxwn8bCJQHAaER/gNRqtUPnfLjh/pJjSMuvVa7g5thY 78X8sYjtgPwn2Wj76H9oYHxhPJTf0kFW55GD5MBhlL6niLAWhpWU12Cc56kkfveaUA0MFy4 qLEnpTfg4Ig1VAPGaDIASLChBLTDjsoiY1YdJ208W1TCYuGLEjcI62quyAe1jT3WKo7f+Yr lcoYAZOekDBhbEva9tJ/g== X-UI-Out-Filterresults: notjunk:1; V01:K0:QrmcYvaDPVc=:R12ON3JYM6ENi3Xv7un0to J4IkooLgox8RuyP3EO7c4deu9MbRTFWTv7LJ7vV6PVZwP5qwimOM1qblBIw/JLfLqi6gBVDB1 aQBdVW3IE1hXjE6U9Q5I2GmBkCzEYEtWxX6/YUAZzurIXp9FCLS6F9GksIwYemQlK3rECpRvz 5ny4i6JVzLv4fOn+xX1AxH5BfEDrfqSmg5BHlfYRGZ97xSCaQLr5KTblqi8XuHSHXDi4BPmkZ H8r6l481uHekEXiK0nid2YE9feHBxbSp+nBk+hHI6HssOmLBPk2Np1yK58OOw8rrDSEqD1GmX YUQ07HTpR+OZV5vnfzgKtR/kVLxhlj+hn0sh7hR7MkVh4XsAYxirRcuO4+dR7DZ3w8ZG9c9nO hG0Uaijt4yASfzeg2ZNbZ4+kgFh131W69tooOXDdGPmxN3xmMyHcEtT+hUYXuKxcnkpNOCcvz qCs8s2TjA8ubLsbFvFcJqnZg/93UdoDFfQ8jmJTZv1kTPcLeZcuSbgeoiZ3iJkSRNHfakDyfX OoI1BuoKBGiP35+AsWzs82NoGrUKHx2eVTuZo2TlNWH0wMwhJM6G/iDZb/VuRIli3MBx+olwR gEiglmhVpA3PPCKGRBaw1Nw616JJghwFEfC8nZBej6pDp0YMofeKhcLw9BoI1Kxoi7LUIbgqL 27T//V1FTnQzxmPCfcEtm571WDMl4hIXNm7isLPTIBN1fIphQFmBufvPs5Vdb69fCJfDoT0pF XLT9H5Iy2F9NGPWLWCg4gIuJlPFBBK+Sdj1I0iEqew6kYVouk+nT7GrZpPL2Xi4tBWL7P3l6G DwY7AUD Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 8 May 2017 13:42:03 +0200 A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Acked-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/mipi-dbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tinydrm/mipi-dbi.c b/drivers/gpu/drm/tinydrm/mipi-dbi.c index f4eb412f3604..54d66b732d55 100644 --- a/drivers/gpu/drm/tinydrm/mipi-dbi.c +++ b/drivers/gpu/drm/tinydrm/mipi-dbi.c @@ -946,7 +946,7 @@ static int mipi_dbi_debugfs_command_show(struct seq_file *m, void *unused) for (i = 0; i < len; i++) seq_printf(m, "%02x", val[i]); - seq_puts(m, "\n"); + seq_putc(m, '\n'); } return 0;