Commit 21d9fbcc authored by Monam Agarwal's avatar Monam Agarwal Committed by Greg Kroah-Hartman

Staging: iio/resolver: Fix prefer pr_warn over pr_warning in ad2s1210.c

This patch fixes following checkpatch.pl warning
WARNING: Prefer pr_warn(... to pr_warning(...
Signed-off-by: default avatarMonam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba5be646
...@@ -312,7 +312,7 @@ static ssize_t ad2s1210_store_control(struct device *dev, ...@@ -312,7 +312,7 @@ static ssize_t ad2s1210_store_control(struct device *dev,
if (st->pdata->gpioin) { if (st->pdata->gpioin) {
data = ad2s1210_read_resolution_pin(st); data = ad2s1210_read_resolution_pin(st);
if (data != st->resolution) if (data != st->resolution)
pr_warning("ad2s1210: resolution settings not match\n"); pr_warn("ad2s1210: resolution settings not match\n");
} else } else
ad2s1210_set_resolution_pin(st); ad2s1210_set_resolution_pin(st);
...@@ -372,7 +372,7 @@ static ssize_t ad2s1210_store_resolution(struct device *dev, ...@@ -372,7 +372,7 @@ static ssize_t ad2s1210_store_resolution(struct device *dev,
if (st->pdata->gpioin) { if (st->pdata->gpioin) {
data = ad2s1210_read_resolution_pin(st); data = ad2s1210_read_resolution_pin(st);
if (data != st->resolution) if (data != st->resolution)
pr_warning("ad2s1210: resolution settings not match\n"); pr_warn("ad2s1210: resolution settings not match\n");
} else } else
ad2s1210_set_resolution_pin(st); ad2s1210_set_resolution_pin(st);
ret = len; ret = len;
......
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