ret = dm_i2c_write(dev, reg, buffer, len);
if (ret)
- error("%s write error on register %02x\n", dev->name, reg);
+ pr_err("%s write error on register %02x\n", dev->name, reg);
return ret;
}
ret = dm_i2c_read(dev, reg, buffer, len);
if (ret)
- error("%s read error on register %02x\n", dev->name, reg);
+ pr_err("%s read error on register %02x\n", dev->name, reg);
return ret;
}
/* check setpoint is within limits */
if (uV < uc_pdata->min_uV) {
- error("voltage %duV for %s too low\n", uV, dev->name);
+ pr_err("voltage %duV for %s too low\n", uV, dev->name);
return -EINVAL;
}
if (uV > uc_pdata->max_uV) {
- error("voltage %duV for %s too high\n", uV, dev->name);
+ pr_err("voltage %duV for %s too high\n", uV, dev->name);
return -EINVAL;
}