Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp116046pxb; Fri, 20 Aug 2021 20:46:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8Ci8J+hvy3fSeXHYhyTakSj+PdRPalK3HAyznztkOq+r7Pt8MMvw2kwCRcyJCPl5CHcEX X-Received: by 2002:a05:6402:50c6:: with SMTP id h6mr25673079edb.1.1629517575738; Fri, 20 Aug 2021 20:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629517575; cv=none; d=google.com; s=arc-20160816; b=Z77ComlbF4oZsk9hZwc7V8GodHJjROU8oGhu9VabBQ8FtLO3khaeXEzccIyiFmXE/X cnw9P9aTGPmhVHFfLC7PFVX1xdbeG2U4HyFYlCUaIhvAQu8qDtGCssgUsdk6cFu8fRkG 5NkOoYHt3Xb+UD8Wwl9kM+q3eoppJf926DdC37dLNko86Xz79xxGfrvuKQRyik2zxB5F IqYy6K38AZzmEmgeQamQe+CUbtoZiXy7C+u8NBQquBGNcglIuro//pPnB2C0jbMzvXW5 K5x7bQiJqbOImePoRCJ8+JJBcMu8jv8Su9j8hTeoLBKaYx2hYuRGqiwKIeSzfzvpUZWh TkQA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6m4yJM+RPlW4VzYVQJtczboQP1huDBgJlzyxLuLVY6I=; b=ukTHlk3z226eEmbzEixtuuLyyvmME+9j17PxRnXqh6wIYSUB2loI6Ym3Z1EihLFix1 AW9MDoM4/kTiX1h2lU6R9a6XawCXEf5Le93UBwaSu3NfWCqJGVd5ijSXGlKXWzFbAA9W Ltbmo9YiSDc8AQpIcxpPxMXE5YxqExXkrUGUklid9kheHj081uKNnvXev4Wt0uDwQQay l7ycKCfjFkV+AHBHtUAjYhnmDybPdVu9y09sq2fTBBpSgWWGGGwDleKaDHt4FWZ8vCTk kvAHxXWUnrfpiRf7V/Knz9HVbj8QL/RPIbemkNEoAzonYPRH64L2SFJsLcGM5d+V++tt 0VmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rrKEjudn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si8900671eds.325.2021.08.20.20.45.35; Fri, 20 Aug 2021 20:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rrKEjudn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232193AbhHUDno (ORCPT + 99 others); Fri, 20 Aug 2021 23:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhHUDnn (ORCPT ); Fri, 20 Aug 2021 23:43:43 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4C32C061575 for ; Fri, 20 Aug 2021 20:43:04 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id eh1so6625291qvb.11 for ; Fri, 20 Aug 2021 20:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6m4yJM+RPlW4VzYVQJtczboQP1huDBgJlzyxLuLVY6I=; b=rrKEjudncsljrzy+/lvGllzXr4CXoSjxCW4fHeXqgFNOqC/gnGMxAiRTjslEiD8m1f jN2Q30li/26gFREpEN/BPGWN6nq/js8/zvbw8ppT54hEF3Rvsxm1iPLqJwmNrKkVKix5 HSJAXslEa/ott2MP8L3ayYo9YnOa8y1eFZ2NsBdf25SjyzDcvq5h1IzVghhTCU2BKj3s AhrKhCj94VHlRAI7yutQlyRJ/jIY9koWC2IclCm2fBg2rgyGClRq2fb1l+H9Cq7+ReXR WyXfDSTq8nLWfU7pCT9OIu8egZmie3L6SspCVC/TKFWQnxsvBR4DfJNRmtUb//FY06AQ quGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6m4yJM+RPlW4VzYVQJtczboQP1huDBgJlzyxLuLVY6I=; b=HYecZefiPnJsLU61uoNK3N0PVvJuFoMAvAKVFWG6XaNWs1Ln2qOTvkY6wzPYwmoM1/ 0qughUstS7y99w3UkiEpv+TZnRblKm5UXxISzMTfQBPK1CyskQuUf6CucRVlhqsRWLNo zrFWl4LzLdq6HiSxBqTx47NO6Vqr/loRv8v5WE1RxE2WlmBsz1FuyatyT8KhGHQ46NU2 shyRGRoGNBVZwm/7KjXhmV+1xJ9I9DvXKNhDCsyyCYjMsMF8uY9gkhtWN95+Wn63t/tp bRRvaDyK4J5OHwvmIfe7y591fiDFkBefPR1xBHcktx/rH+GxP8zk1UGcRHU96gyLikgF YH8g== X-Gm-Message-State: AOAM5322kvaUNmZO1fovCr3JzPJJUjT4WOBR0nUeddkMtPxrVtwq5b+N mUxB63BJYJmLSfHFUOL0uUqsi2NwGE8= X-Received: by 2002:ad4:58a6:: with SMTP id ea6mr4358759qvb.41.1629517383942; Fri, 20 Aug 2021 20:43:03 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id u22sm4291952qkj.123.2021.08.20.20.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 20:43:03 -0700 (PDT) From: CGEL X-Google-Original-From: CGEL To: Jeremy Kerr Cc: Joel Stanley , Alistar Popple , Eddie James , linux-fsi@lists.ozlabs.org, linux-kernel@vger.kernel.org, jing yangyang , Zeal Robot Subject: [PATCH linux-next] fsi:(fsi-master-gpio)Convert sysfs sprintf/snprintf family to sysfs_emit Date: Fri, 20 Aug 2021 20:42:50 -0700 Message-Id: <20210821034250.27914-1-jing.yangyang@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: jing yangyang Fix the following coccicheck warning: ./drivers/fsi/fsi-master-gpio.c:721:8-16:WARNING:use scnprintf or sprintf Reported-by: Zeal Robot Signed-off-by: jing yangyang --- drivers/fsi/fsi-master-gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/fsi/fsi-master-gpio.c b/drivers/fsi/fsi-master-gpio.c index 7d5f29b..865acb3 100644 --- a/drivers/fsi/fsi-master-gpio.c +++ b/drivers/fsi/fsi-master-gpio.c @@ -718,8 +718,7 @@ static ssize_t external_mode_show(struct device *dev, { struct fsi_master_gpio *master = dev_get_drvdata(dev); - return snprintf(buf, PAGE_SIZE - 1, "%u\n", - master->external_mode ? 1 : 0); + return sysfs_emit(buf, "%u\n", master->external_mode ? 1 : 0); } static ssize_t external_mode_store(struct device *dev, -- 1.8.3.1