mbox series

[0/2] fpga: dfl: clean up string formatting for sysfs_emit() and dev_dbg()

Message ID cover.1687301688.git.peter.colberg@intel.com (mailing list archive)
Headers show
Series fpga: dfl: clean up string formatting for sysfs_emit() and dev_dbg() | expand

Message

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