Message ID | cover.1687301688.git.peter.colberg@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1593458vqx; Tue, 4 Jul 2023 20:07:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQ0a3dGO38nNIfZp210R95mNs8hblJxyV1cdvPl1RNUu6Th9F8PCveMfs6T0LsUrKQSPE1 X-Received: by 2002:a05:6870:64a7:b0:19e:a60a:c12b with SMTP id cz39-20020a05687064a700b0019ea60ac12bmr20493982oab.23.1688526462302; Tue, 04 Jul 2023 20:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688526462; cv=none; d=google.com; s=arc-20160816; b=PRi6esFbzgVj7sgGD8ThYs6DjBvz4l01TWgpgkLg7/yy4Zs4P0yZhUo/LxNBPl+jk4 7clzlkbALXX/ZVtT+jMeDUvut0lcbkQNCXQuPABt+GWGvAhf7UNXsyFP8Kgu0wmy8l/y sSfxtdqS7SrPpBmBdO5SD8y8NT6MFkOU+Yxt3Z2oNgy4il7Gv/vm1H+FdGtPITi8wfDq +IkYvV3I9vdfUKQFK3kHIwc6dW569hmh06TfaqATPKsivtqgR7cSzJgWkgaX4G+53Lil Nub8uGJnzx5dxTa4oVENM3de6rwKJhlKCyOf1/ZeLE74q2tYkrCYjC2Bhmsbr+6G631S 5qeg== 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=fRUZsMcNv4s0S7qDdSTH7hk9KtwM8ORfIpBWYqFyq5M=; fh=GHzV6gjveynZvs7pDNWyXWBvpts/SKuvny2fbnydznQ=; b=XvovJOFtDeO6tHxmwlVmddABSED9jA2ZdUweUoXqSEuoLSRsvOgabp/urwK71o8pwi edWljkRpYFxW9qVitRh1UCyZr+RBNAoxo3ltR1oH1Q//Y/O9JgKhz269UDPuGbim6ZhQ jZwJ6zj85pcWxJnRC6+xAT09Ic3hZCwtG2EwwdI1/u4PZsrWUl2zifrMBOyEKqb6cqnP mnX7fqV+G9WZpr6CKkgBmkIzq/iSCTWCUXiLN10CNIGMqBzMpVVmgaHyIxVv4HQAXobl Y0y9dFXPN/f3OYl5mUqqoHH+cUW7nKBgGVfUgtqbqFDajozNmWU7SbnyVUwAFFYiarEa uNLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d78MlzQ1; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n128-20020a634086000000b00553b783ad97si22375833pga.228.2023.07.04.20.07.29; Tue, 04 Jul 2023 20:07:42 -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=@intel.com header.s=Intel header.b=d78MlzQ1; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbjGECzJ (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 4 Jul 2023 22:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjGECzI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 22:55:08 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B404510F8; Tue, 4 Jul 2023 19:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688525707; x=1720061707; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2AHTM+ZT1V/5A9VtX7Byo3tp0kahwGhX0U+hXQPlMxc=; b=d78MlzQ1AmECWugz7WuuU/JzwvBPuYTAKFgQmkOXEIFFXz8ANpZU8ejW uskKD9aercHq4YNleMJwG99lirY1JtAORwP6hV6uPI+bZ/w3Q+4g1LA07 Ny3ntr5NouQdjnRRpyJnYznLpzcAhfIbh1hvoKQ79diRgRRsJtfwa8j/Z Z5mC7DPnRK5IS6buhkmPg9mkFAJT/fhEv5C7tliOkxEGCFtU1oFYyHNks JW+phQ/5uHxdOfWGtSF8YClpgYgJYdi6qJd+NkpEvvzse+RQg+uBuV8Nt pil6iBGJK4LEnt7baY/m8wOBFiPuexgfnq5hwhwP9pOC88OPJaunbQcY5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10761"; a="343567165" X-IronPort-AV: E=Sophos;i="6.01,181,1684825200"; d="scan'208";a="343567165" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2023 19:55:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10761"; a="754206049" X-IronPort-AV: E=Sophos;i="6.01,181,1684825200"; d="scan'208";a="754206049" Received: from scc823097.zsc7.intel.com ([10.148.153.229]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2023 19:55:06 -0700 From: Peter Colberg <peter.colberg@intel.com> To: Wu Hao <hao.wu@intel.com>, Tom Rix <trix@redhat.com>, Moritz Fischer <mdf@kernel.org>, Xu Yilun <yilun.xu@intel.com>, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, tianfei.zhang@intel.com, russell.h.weight@intel.com, matthew.gerlach@linux.intel.com, marpagan@redhat.com, lgoncalv@redhat.com, Peter Colberg <peter.colberg@intel.com> Subject: [PATCH 0/2] fpga: dfl: clean up string formatting for sysfs_emit() and dev_dbg() Date: Tue, 4 Jul 2023 22:54:49 -0400 Message-Id: <cover.1687301688.git.peter.colberg@intel.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770548323643923586?= X-GMAIL-MSGID: =?utf-8?q?1770548323643923586?= |
Series |
fpga: dfl: clean up string formatting for sysfs_emit() and dev_dbg()
|
|
Message
Colberg, Peter
July 5, 2023, 2:54 a.m. UTC
The first patch in this series substitutes sysfs_emit() for sprintf() and scnprintf() to format sysfs values and removes explicit casts in favour of using the correct printk() format specifiers. The second patch omits unneeded casts of u64 values to unsigned long long for dev_dbg(). These changes are cosmetic only; no functional changes. Peter Colberg (2): fpga: dfl: use sysfs_emit() to format sysfs values fpga: dfl: omit unneeded casts of u64 values for dev_dbg() drivers/fpga/dfl-afu-dma-region.c | 14 ++++++-------- drivers/fpga/dfl-afu-error.c | 7 +++---- drivers/fpga/dfl-afu-main.c | 21 +++++++++------------ drivers/fpga/dfl-fme-error.c | 19 ++++++++----------- drivers/fpga/dfl-fme-main.c | 26 ++++++++++---------------- drivers/fpga/dfl-fme-mgr.c | 5 ++--- drivers/fpga/dfl-fme-perf.c | 16 +++++++--------- drivers/fpga/dfl.c | 4 ++-- drivers/fpga/fpga-bridge.c | 2 +- drivers/fpga/fpga-mgr.c | 4 ++-- drivers/fpga/fpga-region.c | 5 ++--- 11 files changed, 52 insertions(+), 71 deletions(-)