Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2218959pxb; Wed, 30 Mar 2022 19:42:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjE8o/NkYcbqEeoJmiz7MX1n1B/Q4fH0mpVbiwjUPx58d12K/avY22V4gAsN07znELpZVh X-Received: by 2002:a17:902:8f94:b0:14f:d9b3:52c2 with SMTP id z20-20020a1709028f9400b0014fd9b352c2mr3017660plo.103.1648694558204; Wed, 30 Mar 2022 19:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648694558; cv=none; d=google.com; s=arc-20160816; b=AztLp1vvSlcsjnIRqtcj3TkBRKYQstcA3v8oSDW2belpl0cvg/GFfQLdyQaHGGhN5A 4eLxpWG5C1Lp4y+GCrmi6aMFWAfi5NrTwLE/q8PwaBr8fwWV3ab1T5Ml68rgNH4v85MZ JNqkOYiK1T0tk4bOWpNClLwkKnHPmVZeFOKID1/iTHTEjhzE3oIIktglCVA3x+PR5vS9 8OiWhurW/3Vbk3KTsxyTcDOZsHT18709b3OjxKamUU2PXTMlSf25St/uiTPh7ERhF021 aSZ4ysqHgakPq0rsMS+Qf/u1PL+ztuORz4+H4nOl3Sv4iJ+jCLFYjSjDgtMQM8tJA5m9 n/OQ== 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=CI4Z6cJYPwzor6lNYwRw4UeGtAua7LK1ZNo1zInbVyk=; b=mGEoegsS/yFSQi4xySLiY0ibmlNtqRt/E9gWEQEXHq2cWxCfmzul1uonoip+zHw0Mn WtRlyJTytJ49+BBvhZjX0wiSOcKOelE/4bcbJmXcncqXaU0h68QmxeMgdUZFNGGkKldS 81gCus0LvA9l1oJX8xCqgvAAKYPcET7k4s58VZLndQCMPkXCE46qQK/I0uNrDxUqgO42 4NK7fAPL3WE9A35o4JgpFZ+YN6X5vH83Kno2eGaKB26NT+dlP3dI7sonX2r+4F0gtWLd I3sQ0DrQ2KNP+psPfQlYbpVRISGL8QsdoD9SYU+LUMUpWCO1hZ1obdUB4byvT6Dyft31 AkSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VqHMilrl; 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 v2-20020a634802000000b003829aca7f1asi22534841pga.637.2022.03.30.19.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:42:38 -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=VqHMilrl; 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 473C1A66EF; Wed, 30 Mar 2022 19:34:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244066AbiC3MJG (ORCPT + 99 others); Wed, 30 Mar 2022 08:09:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344612AbiC3LxT (ORCPT ); Wed, 30 Mar 2022 07:53:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 934C82689BE; Wed, 30 Mar 2022 04:49:18 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 47E7F61637; Wed, 30 Mar 2022 11:49:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7144C3410F; Wed, 30 Mar 2022 11:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648640956; bh=giM/BAivgxJrob6NYPSr1zOqqdEG4sFSemV5nmzN4OM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VqHMilrljxq4gnwCS/sO8TVbSSJFRT16Lh5lklPsGvykxBymp793AwvLzvI4UZ0uS /b4e3vzDFLGcO9PYBt7nmNiqcrkZcPceJ6X/n/Gp1I6St47c6LWpX619EVlAslBwZF +rMdwg+zS2u7AaPRPGwSOrpAnBcPIqGlSWtRpWRCfnHMcHBLyaa7Cfc8OoKFESMJyP pXZ1BwaRlepDrMqAu//e/tKG2J5EVAA75NF8AXlvaq8BhOsEiEs3YTfsa0HkNSX0Ae p2ypURl/2X5xtWtxd5OIoBMzxjr2oYxR9+gurrXV/JM2jP4VwPgoh1k/Cg0cV2lBJ3 84RR8Dfy21IZA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jing Yao , 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 28/59] video: fbdev: omapfb: panel-tpo-td043mtea1: Use sysfs_emit() instead of snprintf() Date: Wed, 30 Mar 2022 07:48:00 -0400 Message-Id: <20220330114831.1670235-28-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: Jing Yao [ Upstream commit c07a039cbb96748f54c02995bae8131cc9a73b0a ] Use sysfs_emit instead of scnprintf, snprintf or sprintf. Reported-by: Zeal Robot Signed-off-by: Jing Yao Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- .../video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c index afac1d9445aa..57b7d1f49096 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c @@ -169,7 +169,7 @@ static ssize_t tpo_td043_vmirror_show(struct device *dev, { struct panel_drv_data *ddata = dev_get_drvdata(dev); - return snprintf(buf, PAGE_SIZE, "%d\n", ddata->vmirror); + return sysfs_emit(buf, "%d\n", ddata->vmirror); } static ssize_t tpo_td043_vmirror_store(struct device *dev, @@ -199,7 +199,7 @@ static ssize_t tpo_td043_mode_show(struct device *dev, { struct panel_drv_data *ddata = dev_get_drvdata(dev); - return snprintf(buf, PAGE_SIZE, "%d\n", ddata->mode); + return sysfs_emit(buf, "%d\n", ddata->mode); } static ssize_t tpo_td043_mode_store(struct device *dev, -- 2.34.1