Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1005825pxb; Wed, 6 Apr 2022 06:32:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGfEDOXCARJ0BQq9HJt7z4FwCdvG34lym28sjeoOSOdOAXozfC6X4g5f/jnms4nxzUakS4 X-Received: by 2002:a17:90b:3c0d:b0:1c7:ecae:e609 with SMTP id pb13-20020a17090b3c0d00b001c7ecaee609mr9821946pjb.61.1649251962457; Wed, 06 Apr 2022 06:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649251962; cv=none; d=google.com; s=arc-20160816; b=TebvATsT66KlAxiWukFOCNW5iKoZuhkn8VYTO+EwU2x2MTDjMfYyEacoFRKG/7Fg/A 8W2qtmO9m9Jqe+M96dV9lBijKlB/udVi6PSEhaWQX2nZVF+vP9EBHRkIqylf2s5Pn6uM 8dgxQfvm6mNxB3bGJh6KVc3D5NSEVvOMTooWGzrn/OdlPkUxbsMmGiK3v2GdpR8+TkNX j7N2BdfK4Cu7sEKV345s65RNLlY/KW3mOH6kBsVxQ2RKKjFQi4L45Sav14NhgtJutc4I dh2aL7pMrE7XdCpqSiboqsQdfVt6tIYbbafO5SR7IzfBLwIF/xgmgvFJti8Md3zPuNXn TJyA== 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=TnsLYvsZZ+PQo/T6uhEhnuXGCl4ppmWVGtimf984hedlP6RxItSrd8KhyXLg8TP7ju NPCeTdYJAWr5xpYxXwwHT9rSlvLfbtuguXUaLuOL5XI/FWtJWlQteddYjI3izii8iQu4 T2tumbFxafRUJSg6iQwmIypwznb1rl4+OPITJxa02phTFShVzjRFF1kF9mtzy2aW8uaj Bu/MAaoPPQHchztW70XRTMDC3tGpFJEBebWA10i9KCPbYXloYM06LuuWwBnve80Fr5Yr Eq8044ILOfBApceRw9ubnlDFuCGxmz4TRO+vO7aqTs9oSRCXhOVbOVM+exwSCWoqwx9u /YTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ugos0qr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 25-20020a631559000000b0039905bfa26esi11144195pgv.788.2022.04.06.06.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ugos0qr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14E2E459AC3; Wed, 6 Apr 2022 04:12:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381712AbiDEUys (ORCPT + 99 others); Tue, 5 Apr 2022 16:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351992AbiDEKDq (ORCPT ); Tue, 5 Apr 2022 06:03:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EC4BA94C8; Tue, 5 Apr 2022 02:52:42 -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 710866172B; Tue, 5 Apr 2022 09:52:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89E80C385A1; Tue, 5 Apr 2022 09:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152361; bh=giM/BAivgxJrob6NYPSr1zOqqdEG4sFSemV5nmzN4OM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ugos0qr2iTnzj/qd9h9zPASUaxk3JRlOo3KsndAT8vChmj2+yXcMYXbJ1a9PHPCKS HUeBTHvcm9BDihPaLyC4o4KF/UMUNQ9HKufI7P+R3aW6q7rdHzs061NKLvJE2Xg2XX WaUB93zqE5EjrsP79TsfLIcg7+hs0ABKqYyY7jME= 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.15 750/913] video: fbdev: omapfb: panel-tpo-td043mtea1: Use sysfs_emit() instead of snprintf() Date: Tue, 5 Apr 2022 09:30:12 +0200 Message-Id: <20220405070402.314465011@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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