Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp704787pxb; Tue, 5 Apr 2022 19:33:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy5vRVBZDobrWtyXm8yAQOfSbI32N5va3ZEB/FL1srIvur0d2JLvg5bu+aWSe8fPYoH9wO X-Received: by 2002:a17:906:99c4:b0:6df:f7c9:27f9 with SMTP id s4-20020a17090699c400b006dff7c927f9mr6256815ejn.465.1649212403195; Tue, 05 Apr 2022 19:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212403; cv=none; d=google.com; s=arc-20160816; b=AZEgx89riKrTC9xMhB4SiXbQ5rxLeRDQzgyfx3IDyANjYdAjCldXaA9imLpu+wU9ZG P9tNurhpjp1EoZ16WhXc8ew6mWonkwLVy1mQB7t+8qoStl441aOXNIQhTmZLFRbg48/z kZV9PSapzgsIThm8xYUm8MtQmV1FXmYddoe8OJkYyg3+pOfzthQ3LZI+JIoiDyYpyxPi +IaV5pE89gm5yhK4ZFpu8EOLClnapFAfresvOIc/JE7COQGGUdFaD1p0jE+4/oZFlXvI Yw0HreWXJ22QUfxo4eZOU6i2gffCmm7Nk5545/NK5Y1ZBFaBdwwrfx1N/gsNE7qGnrE/ Hi3A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CI4Z6cJYPwzor6lNYwRw4UeGtAua7LK1ZNo1zInbVyk=; b=xe0cku6gaZ4PP3oG/njKFN3RjTbuul6gQZihMC4PVyruT7LcUfopqvDABFLmfd1czj ZtwtBzu5XsTg5VdSj7XbnBhvLVngCK5XObOE4qWEPUMz3enh25NeE70hDESqpRY3OMrf 0bIMTEQNrR/WxBz2bvodTIa+mn5gZU1ycP1wnFNU2WPSJ1z8kHKYy0uqKwOjiOEHVWcv 1dLQeVGLkBcYZ8pemhONFstSIU7Gwcel/8lV4Jdz3vtX0J6p5jm3Gyr95N0Bt7wKlnqu ZtniamrotOj58V9DTP8mjB7/RECr0+g9GkPtURJi/hbd7CJWpI9m6bGg3H3wdcklKBPK 0oOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kr25cVmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id el10-20020a170907284a00b006e74d7ff06fsi7429128ejc.402.2022.04.05.19.32.59; Tue, 05 Apr 2022 19:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kr25cVmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243046AbiDENZn (ORCPT + 99 others); Tue, 5 Apr 2022 09:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345163AbiDEJWT (ORCPT ); Tue, 5 Apr 2022 05:22:19 -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 B5EA02459F; Tue, 5 Apr 2022 02:09:22 -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 9039CB81B75; Tue, 5 Apr 2022 09:09:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3DACC385A0; Tue, 5 Apr 2022 09:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149760; bh=giM/BAivgxJrob6NYPSr1zOqqdEG4sFSemV5nmzN4OM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kr25cVmrb+YgGFUeR/h6vgfd9Bd2xrT0U2+jYcHPRERQsuMWv6ShuH6fTd7brub89 cer21trH8/QU6/f8dop0nlLFZGKoT/JTqTB1ph433M9EKRQynxkVXmDJE8WJ1TYPQr HzOV56Zt7Fe6QMzRv1bR4G+ldi9AjZjmxJubCvOY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zeal Robot , Jing Yao , Helge Deller , Sasha Levin Subject: [PATCH 5.16 0830/1017] video: fbdev: omapfb: panel-tpo-td043mtea1: Use sysfs_emit() instead of snprintf() Date: Tue, 5 Apr 2022 09:29:03 +0200 Message-Id: <20220405070418.881931432@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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