]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
iio: imx7d_adc: Replace pr_err with dev_err
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 3 Apr 2019 07:03:21 +0000 (00:03 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Apr 2019 12:22:30 +0000 (13:22 +0100)
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>
drivers/iio/adc/imx7d_adc.c

index 3bbd657409d5d94225bf2cc90339aa7790b00b8e..72cfe9834bcb75024558a3c96d319ddff06fed0c 100644 (file)
@@ -388,8 +388,9 @@ static irqreturn_t imx7d_adc_isr(int irq, void *dev_id)
         * timeout flags.
         */
        if (status & IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT) {
-               pr_err("%s: ADC got conversion time out interrupt: 0x%08x\n",
-                       dev_name(info->dev), status);
+               dev_err(info->dev,
+                       "ADC got conversion time out interrupt: 0x%08x\n",
+                       status);
                status &= ~IMX7D_REG_ADC_INT_STATUS_CHANNEL_CONV_TIME_OUT;
                writel(status, info->regs + IMX7D_REG_ADC_INT_STATUS);
        }