Commit ce7afa5c authored by Mohan Kumar's avatar Mohan Kumar Committed by Jonathan Cameron

iio:accel:Switch hardcoded function name with a reference to __func__ making...

iio:accel:Switch hardcoded function name with a reference to __func__ making the code more maintainable

It fixes the following checkpatch.pl warning:

WARNING: Prefer using '"%s...", __func__' to using function's name, in a
string
Signed-off-by: default avatarMohan Kumar <mohankumar718@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 80696785
...@@ -394,7 +394,7 @@ static int bmc150_accel_set_power_state(struct bmc150_accel_data *data, bool on) ...@@ -394,7 +394,7 @@ static int bmc150_accel_set_power_state(struct bmc150_accel_data *data, bool on)
if (ret < 0) { if (ret < 0) {
dev_err(dev, dev_err(dev,
"Failed: bmc150_accel_set_power_state for %d\n", on); "Failed: %s for %d\n", __func__, on);
if (on) if (on)
pm_runtime_put_noidle(dev); pm_runtime_put_noidle(dev);
......
...@@ -451,7 +451,7 @@ static int kxcjk1013_set_power_state(struct kxcjk1013_data *data, bool on) ...@@ -451,7 +451,7 @@ static int kxcjk1013_set_power_state(struct kxcjk1013_data *data, bool on)
} }
if (ret < 0) { if (ret < 0) {
dev_err(&data->client->dev, dev_err(&data->client->dev,
"Failed: kxcjk1013_set_power_state for %d\n", on); "Failed: %s for %d\n", __func__, on);
if (on) if (on)
pm_runtime_put_noidle(&data->client->dev); pm_runtime_put_noidle(&data->client->dev);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment