8cdd0a718da4cdd308398cb5dd758647fc94febf
[openwrt/staging/stintel.git] / target / linux / generic / backport-4.19 / 503-v5.1-iio-chemical-sps30-remove-printk-format-specifier.patch
1 From 3fa30bf7004bb8069826ef85487f4753666a73da Mon Sep 17 00:00:00 2001
2 From: Tomasz Duszynski <tduszyns@gmail.com>
3 Date: Sat, 2 Feb 2019 10:00:03 +0100
4 Subject: [PATCH] iio: chemical: sps30: remove printk format specifier
5
6 pr_fmt is used by printk wrappers. There are not any in the driver
7 code so remove the format specifier.
8
9 Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
10 Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
11 ---
12 drivers/iio/chemical/sps30.c | 2 --
13 1 file changed, 2 deletions(-)
14
15 diff --git a/drivers/iio/chemical/sps30.c b/drivers/iio/chemical/sps30.c
16 index 376fac41ecb5..e03a28a67146 100644
17 --- a/drivers/iio/chemical/sps30.c
18 +++ b/drivers/iio/chemical/sps30.c
19 @@ -7,8 +7,6 @@
20 * I2C slave address: 0x69
21 */
22
23 -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
24 -
25 #include <asm/unaligned.h>
26 #include <linux/crc8.h>
27 #include <linux/delay.h>