Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2236914pxb; Wed, 30 Mar 2022 20:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZe8Dotnm9dula7X37zEaNHR1bzNX3BtcbKBjDEkUj4mvNGXc8mpNTWU8ImzrGb3mDDR1V X-Received: by 2002:a05:6a00:1501:b0:4fb:2d19:b6a8 with SMTP id q1-20020a056a00150100b004fb2d19b6a8mr3123203pfu.21.1648696614503; Wed, 30 Mar 2022 20:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648696614; cv=none; d=google.com; s=arc-20160816; b=GnRdNoGfSgta+Hd8F2TXkg97juKRvU97bJPAv3m12w0cM/JDC3ORv6kfqniUkJquaw lf66LU39IncQgVVWyEyIXZs7lB6MbimYr2mGiQ5rBWeN7ImOuo+CekbZ+tX8KbUjH1Ck 9QceLlfFGck9JVSjpzFVwg+KMTvwR4rug85HScFP0b/iLYrC1TYdAMjYfuye3lMxC5Ig 85XeDP/G3vjeIzotaXg2GFhIBWLQUYj8TdjkmvJV4K8r/szIi95Htyem3lKhraHHJhKQ yBrpBnOi/nSz8YOpdoGHG7ArEaP5nNv31M3PLSePitj08sypFi68l4WbWcjynaihaQzj mdnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HsIT4RlnwommmxyYgukux8/8ZENkP5nNU80xl1mclVw=; b=y5n1G/2VYc3avVo2NUzQqt48VP1MlcPtpNiYUUq0woV+hw3v9w+mn+Ik1KQvnMWCjQ dVy08vUzosK7eOzZv+6+qBxkL+9BLRer6cp9v7qPXLm+bokgfZVR9CSPl+/tHC4JHcoJ kXTndZ18U+67AFEWoSRiLwlFqVLrBBDBCkV8O3dUiQ2QOhQMKs/obB6EMshRqd7dUo+N t+FwxG+Cqghv2Ueg1KRET94b/a3OnMHkkwPwN5cgZCFcMrUqr+PPV/2vDJK7KH1981Dq OVw+qZAuapjR6Rnwd3ziX0BPvByOeisFJXEAFsWuvGkpRCxFNP2bBbejoJtp+sGu6VRa l7UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fsVrAEtz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t12-20020a63224c000000b0039854fb2001si13453656pgm.496.2022.03.30.20.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 20:16:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fsVrAEtz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6CFDBF965; Wed, 30 Mar 2022 19:49:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345638AbiC3MIO (ORCPT + 99 others); Wed, 30 Mar 2022 08:08:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344506AbiC3LxN (ORCPT ); Wed, 30 Mar 2022 07:53:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE908262D61; Wed, 30 Mar 2022 04:49:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 23976B81C37; Wed, 30 Mar 2022 11:49:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02475C340EE; Wed, 30 Mar 2022 11:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648640939; bh=TfW7T4LLiZbMAJKWnDbyoXtY7mFp1MuFCsVtbGpkdmo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fsVrAEtzLVHc1mSEhj93pKXCPmhUujXAgU2Bb9hzUm2hFXu1Xo0pcnpzA/i+LcooI 1Pqf51bQrIHGlNgmpB4RyNFbbdIPkvu7AWSoZJgsN8D41dobSY/rRRNztmnDe/ytkS BwTQH8DXvBkvTsLVsZkZw0seIpNik/e4kfvqPF5aFbsBZb8R7eYkN5DH9u6L9uLWN+ r4GtvXv6dB5yAamjBg0X0YFIL/yJW128WJph+qmRlKe/U6/AM7b76Dc1odmVik1Pal 2wgkQwYYROA8yUP1udL1i0aP/ioJNm674jm6j4J0KRlZ7obb9xm7F7NEEuOqA3u3DA 9Ji2Phnbq1iQw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yang Guang , Zeal Robot , Helge Deller , Sasha Levin , tomi.valkeinen@ti.com, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.16 17/59] video: fbdev: omapfb: acx565akm: replace snprintf with sysfs_emit Date: Wed, 30 Mar 2022 07:47:49 -0400 Message-Id: <20220330114831.1670235-17-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220330114831.1670235-1-sashal@kernel.org> References: <20220330114831.1670235-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Guang [ Upstream commit 24565bc4115961db7ee64fcc7ad2a7437c0d0a49 ] coccinelle report: ./drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c: 479:9-17: WARNING: use scnprintf or sprintf Use sysfs_emit instead of scnprintf or sprintf makes more sense. Reported-by: Zeal Robot Signed-off-by: Yang Guang Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- .../video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c index 8d8b5ff7d43c..3696eb09b69b 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c @@ -476,7 +476,7 @@ static ssize_t show_cabc_available_modes(struct device *dev, int i; if (!ddata->has_cabc) - return snprintf(buf, PAGE_SIZE, "%s\n", cabc_modes[0]); + return sysfs_emit(buf, "%s\n", cabc_modes[0]); for (i = 0, len = 0; len < PAGE_SIZE && i < ARRAY_SIZE(cabc_modes); i++) -- 2.34.1