mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 06:32:50 +00:00
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 <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c9356d115
commit
8ac7f9b37e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user