Skip to contentSkip to conversation

iio: chemical: sps30: remove printk format specifier

PATCH Applied Tomasz Duszynski 2 participants 2 messages Feb 2, 2019

Subsystems (2)
lore
Share & tools
lore

Tomasz Duszynski

author maintainer
#0 lore raw

PATCH 1/1 iio: chemical: sps30: remove printk format specifier

pr_fmt is used by printk wrappers. There are not any in the driver code so remove the format specifier.

---
 drivers/iio/chemical/sps30.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/chemical/sps30.c +0 -2
index 376fac41ecb5..e03a28a67146 100644
@@ -7,8 +7,6 @@
  * I2C slave address: 0x69
  */
 
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-
 #include <asm/unaligned.h>
 #include <linux/crc8.h>
 #include <linux/delay.h>

--
2.20.1

#1 lore raw
Quoted 4 lines · On Sat, 2 Feb 2019 10:00:03 +0100 Tomasz Duszynski <[email protected]> wrote:

pr_fmt is used by printk wrappers. There are not any in the driver code so remove the format specifier.

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to mostly ignore it.

Thanks,

Jonathan

Quoted 20 lines
---
 drivers/iio/chemical/sps30.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/chemical/sps30.c +0 -3
index 376fac41ecb5..e03a28a67146 100644
@@ -7,8 +7,6 @@
  * I2C slave address: 0x69
  */
 
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-
 #include <asm/unaligned.h>
 #include <linux/crc8.h>
 #include <linux/delay.h>
--

2.20.1