iio:accel:Switch hardcoded function name with a reference to __func__ making the...
authorMohan Kumar <mohankumar718@gmail.com>
Fri, 19 Apr 2019 08:36:51 +0000 (11:36 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 22 Apr 2019 10:41:35 +0000 (11:41 +0100)
It fixes the following checkpatch.pl warning:

WARNING: Prefer using '"%s...", __func__' to using function's name, in a
string

Signed-off-by: Mohan Kumar <mohankumar718@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bmc150-accel-core.c
drivers/iio/accel/kxcjk-1013.c

index b4e2d9b..44d7c49 100644 (file)
@@ -394,7 +394,7 @@ static int bmc150_accel_set_power_state(struct bmc150_accel_data *data, bool on)
 
        if (ret < 0) {
                dev_err(dev,
-                       "Failed: bmc150_accel_set_power_state for %d\n", on);
+                       "Failed: %s for %d\n", __func__, on);
                if (on)
                        pm_runtime_put_noidle(dev);
 
index 4895124..ce1d454 100644 (file)
@@ -451,7 +451,7 @@ static int kxcjk1013_set_power_state(struct kxcjk1013_data *data, bool on)
        }
        if (ret < 0) {
                dev_err(&data->client->dev,
-                       "Failed: kxcjk1013_set_power_state for %d\n", on);
+                       "Failed: %s for %d\n", __func__, on);
                if (on)
                        pm_runtime_put_noidle(&data->client->dev);
                return ret;