From: Haneen Mohammed Date: Wed, 18 Mar 2015 10:12:07 +0000 (+0300) Subject: Staging: iio: replace pr_* with dev_* X-Git-Tag: v4.1-rc1~152^2~138^2~337 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8ac7f9b37ebc6ae294a6ebbf8cd14d2bf3edc7b4;p=karo-tx-linux.git Staging: iio: replace pr_* with dev_* dev_* is prefered over pr_* when appropriate device stuct is present. This patch replace pr_err and pr_warn with its dev_ counterpart. Signed-off-by: Haneen Mohammed Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index 1d8c5c0bdc88..5b1daeacac7a 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c @@ -151,7 +151,7 @@ int ad2s1210_update_frequency_control_word(struct ad2s1210_state *st) fcw = (unsigned char)(st->fexcit * (1 << 15) / st->fclkin); if (fcw < AD2S1210_MIN_FCW || fcw > AD2S1210_MAX_FCW) { - pr_err("ad2s1210: FCW out of range\n"); + dev_err(&st->sdev->dev, "ad2s1210: FCW out of range\n"); return -ERANGE; } @@ -317,7 +317,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_warn("ad2s1210: resolution settings not match\n"); + dev_warn(dev, "ad2s1210: resolution settings not match\n"); } else ad2s1210_set_resolution_pin(st); @@ -378,7 +378,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_warn("ad2s1210: resolution settings not match\n"); + dev_warn(dev, "ad2s1210: resolution settings not match\n"); } else ad2s1210_set_resolution_pin(st); ret = len;