On Wed, 2012-02-22 at 02:55 -0500, Xie Xiaobo wrote: > Add I2C driver for MCP3021 that is an ADC chip from Microchip. > The MCP3021 is a successive approximation A/D converter (ADC) > with 10-bit resolution. > The driver export the value of Vin to sysfs, the voltage unit is > mV. Through the sysfs interface, lm-sensors tool can also display > Vin voltage. > > Signed-off-by: Mingkai Hu <Mingkai.hu@xxxxxxxxxxxxx> > Signed-off-by: Xie Xiaobo <X.Xie@xxxxxxxxxxxxx> [ ... ] > + > + if (reg < 0) { > + printk(KERN_ERR "%s encountered error %d\n", __func__, reg); You should use dev_err() here. Guenter _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors