Linux-FPGA Archive mirror
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <cover.1687301688.git.peter.colberg@intel.com> (raw)

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(-)

-- 
2.28.0


             reply	other threads:[~2023-07-05  2:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-05  2:54 Peter Colberg [this message]
2023-07-05  2:54 ` [PATCH 1/2] fpga: dfl: use sysfs_emit() to format sysfs values Peter Colberg
2023-07-10  7:45   ` Xu Yilun
2023-07-05  2:54 ` [PATCH 2/2] fpga: dfl: omit unneeded casts of u64 values for dev_dbg() Peter Colberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1687301688.git.peter.colberg@intel.com \
    --to=peter.colberg@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=hao.wu@intel.com \
    --cc=lgoncalv@redhat.com \
    --cc=linux-fpga@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marpagan@redhat.com \
    --cc=matthew.gerlach@linux.intel.com \
    --cc=mdf@kernel.org \
    --cc=russell.h.weight@intel.com \
    --cc=tianfei.zhang@intel.com \
    --cc=trix@redhat.com \
    --cc=yilun.xu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).