From patchwork Sun May 7 09:52:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9715631 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 AED5F60380 for ; Sun, 7 May 2017 23:27:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1CD61FF29 for ; Sun, 7 May 2017 23:27:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95E4A22638; Sun, 7 May 2017 23:27:08 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CCD41FF29 for ; Sun, 7 May 2017 23:27:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751516AbdEGX0z (ORCPT ); Sun, 7 May 2017 19:26:55 -0400 Received: from mout.web.de ([212.227.15.3]:58324 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751433AbdEGX0y (ORCPT ); Sun, 7 May 2017 19:26:54 -0400 Received: from [192.168.1.3] ([77.182.161.211]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LakkS-1dmv8j1vJo-00kRVr; Sun, 07 May 2017 11:52:57 +0200 Subject: [PATCH 2/3] thermal: tegra: Use seq_putc() in regs_show() From: SF Markus Elfring To: linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, Arnd Bergmann , Eduardo Valentin , Jonathan Hunter , Mikko Perttunen , Thierry Reding , Wei Ni , Zhang Rui Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Sun, 7 May 2017 11:52:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K0:DwTDDyyZObWC+JGXOjA9eW4Y8BjjM6NT1uvegzcSc4J+O6VPiMI CjfAlaCPQqot+J077RES8MBZ7hjyy80PaCIkrlhRqCM4CPDv5alCa4irQwMCKcx2+iZCkJO JyxAYFAMwJKlmFQOie03WLs0n0sihjd8xN646SF/95QksRcu18Ik3HthTda6XvENnaFMjfc hGsAG4cSxeTXHN43skJiw== X-UI-Out-Filterresults: notjunk:1; V01:K0:U6S+XiHnLRc=:X/LA/ioYk5K8ccqV6SFnAU 9K3jCyzvqgCHoU/cZksAbm263SHKxna1TlvY5SWrI9hw4QxRIXrRwFeWS3vKNZubAnlQsb8fV AKZXlBgaKz6hkATkoKKsvHmCy2PGzOhTLsN8ofWiYTJRpi247bbR+WnOJ/HlxkZpQe7afK3Vv Jdw76K8b0ROCpD2KWXCcsNPJ66fYA5q7HlI5MTYOR8bEgwOrSs3IDn7ZjbCtovA1nf/WZA3qu wqPpW7iF8f08XHEKSqZ1aPO2/h5UI/B9cOpP0MPcI+C5atvFj3Z7Z72viPjCX/VAuIshFfPxs prIU4FZAJGUMqE0XAyeMKf6K9y3TBMSOKzs3k9EHUHOqWOpZci5K29QFU4U6X4o1W2iSjIbmU 0JcvvW0FUH/liAOD7WeENGkpmI00JIcGlbiIEZLAOJ2Qe5uD0Ly/5qFWRj/EjD9yD0w28LVJ2 TUO5dtN8MkMpyworUk5QOWReULx7SgSicHQetBBS8IrOiyv7xxu6IrU6Qoo4yBiO4FnFI535G hH8Lnj6gTQX53Xb2LRlUYXk+HBH6ALezkzl1GVFuRd5/285jhMkxTGNxcd2QuXP+g3B3rGZ7y beZ3oLMnp8hHeHppgMb+2xJQwyYUMxTDlKKfe0KNcn6bSWd07I6JCXWBNRh7DXXofgFNcGqvd AQXebRDfixV5TPNzveDOC1LiT6NLCOXunQN2VmPSPVEH5KzisoN/i5iI1NBkW+/2r9dBoI00W a5kuX8z7nfQ9xlp0isin+eOJC9pffmg2W53wRMeudEwUzD9Oq0dcfSn8dTcGRO42ieFGMwgux T2diaud Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 7 May 2017 10:57:40 +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 --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index c5871f9b6596..1b3915588bce 100644 --- a/drivers/thermal/tegra/soctherm.c +++ b/drivers/thermal/tegra/soctherm.c @@ -661,6 +661,6 @@ static int regs_show(struct seq_file *s, void *data) if (!state) { - seq_puts(s, "\n"); + seq_putc(s, '\n'); continue; }