iio: imx7d_adc: Replace pr_err with dev_err
Replace combination of pr_err()/dev_name() with an equivalent call for dev_err(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Jonathan Cameron <jic23@kernel.org> Cc: Hartmut Knaack <knaack.h@gmx.de> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net> Cc: Chris Healy <cphealy@gmail.com> Cc: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
aa21a28e90
commit
8cc393bf30
|
@ -388,8 +388,9 @@ static irqreturn_t imx7d_adc_isr(int irq, void *dev_id)
|
||||||
* timeout flags.
|
* timeout flags.
|
||||||
*/
|
*/
|
||||||
if (status & IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT) {
|
if (status & IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT) {
|
||||||
pr_err("%s: ADC got conversion time out interrupt: 0x%08x\n",
|
dev_err(info->dev,
|
||||||
dev_name(info->dev), status);
|
"ADC got conversion time out interrupt: 0x%08x\n",
|
||||||
|
status);
|
||||||
status &= ~IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT;
|
status &= ~IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT;
|
||||||
writel(status, info->regs + IMX7D_REG_ADC_INT_STATUS);
|
writel(status, info->regs + IMX7D_REG_ADC_INT_STATUS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue