]> git.sur5r.net Git - u-boot/blobdiff - drivers/adc/sandbox.c
serial: Remove duplicated line in Makefile
[u-boot] / drivers / adc / sandbox.c
index 371892237aa429d293d31133c3e4e6a67543d4d9..80e8e3701a3453b41395ba839ef6bb0cf9b116eb 100644 (file)
@@ -61,7 +61,7 @@ int sandbox_adc_channel_data(struct udevice *dev, int channel,
        /* For single-channel conversion mode, check if channel was selected */
        if ((priv->conversion_mode == SANDBOX_ADC_MODE_SINGLE_CHANNEL) &&
            !(priv->active_channel_mask & (1 << channel))) {
-               error("Request for an inactive channel!");
+               pr_err("Request for an inactive channel!");
                return -EINVAL;
        }
 
@@ -82,12 +82,12 @@ int sandbox_adc_channels_data(struct udevice *dev, unsigned int channel_mask,
 
        /* Return error for single-channel conversion mode */
        if (priv->conversion_mode == SANDBOX_ADC_MODE_SINGLE_CHANNEL) {
-               error("ADC in single-channel mode!");
+               pr_err("ADC in single-channel mode!");
                return -EPERM;
        }
        /* Check channel selection */
        if (!(priv->active_channel_mask & channel_mask)) {
-               error("Request for an inactive channel!");
+               pr_err("Request for an inactive channel!");
                return -EINVAL;
        }
        /* The conversion must be started before reading the data */