Staging: iio/resolver: Fix prefer pr_warn over pr_warning in ad2s1210.c
authorMonam Agarwal <monamagarwal123@gmail.com>
Mon, 3 Mar 2014 16:39:58 +0000 (22:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 22:48:47 +0000 (14:48 -0800)
This patch fixes following checkpatch.pl warning
WARNING: Prefer pr_warn(... to pr_warning(...

Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/resolver/ad2s1210.c

index 6966d5f766481befae4cb5d250434842acc06bc1..7fbaba41c8722957e331058493f5bd8807c30ae4 100644 (file)
@@ -312,7 +312,7 @@ static ssize_t ad2s1210_store_control(struct device *dev,
        if (st->pdata->gpioin) {
                data = ad2s1210_read_resolution_pin(st);
                if (data != st->resolution)
-                       pr_warning("ad2s1210: resolution settings not match\n");
+                       pr_warn("ad2s1210: resolution settings not match\n");
        } else
                ad2s1210_set_resolution_pin(st);
 
@@ -372,7 +372,7 @@ static ssize_t ad2s1210_store_resolution(struct device *dev,
        if (st->pdata->gpioin) {
                data = ad2s1210_read_resolution_pin(st);
                if (data != st->resolution)
-                       pr_warning("ad2s1210: resolution settings not match\n");
+                       pr_warn("ad2s1210: resolution settings not match\n");
        } else
                ad2s1210_set_resolution_pin(st);
        ret = len;