Skip to content

Commit 8cc393b

Browse files
ndreysjic23
authored andcommitted
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 <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Hartmut Knaack <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Cc: Peter Meerwald-Stadler <[email protected]> Cc: Chris Healy <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent aa21a28 commit 8cc393b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/iio/adc/imx7d_adc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,9 @@ static irqreturn_t imx7d_adc_isr(int irq, void *dev_id)
388388
* timeout flags.
389389
*/
390390
if (status & IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT) {
391-
pr_err("%s: ADC got conversion time out interrupt: 0x%08x\n",
392-
dev_name(info->dev), status);
391+
dev_err(info->dev,
392+
"ADC got conversion time out interrupt: 0x%08x\n",
393+
status);
393394
status &= ~IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT;
394395
writel(status, info->regs + IMX7D_REG_ADC_INT_STATUS);
395396
}

0 commit comments

Comments
 (0)