4 Dec
2011
4 Dec
'11
3:44 p.m.
2011/12/4 Mark Brown broonie@opensource.wolfsonmicro.com:
On Sun, Dec 04, 2011 at 07:35:20PM +0800, Axel Lin wrote:
- int ret = 0;
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) ret = i2c_add_driver(&uda1380_i2c_driver); if (ret != 0) pr_err("Failed to register UDA1380 I2C driver: %d\n", ret); #endif
- return 0;
- return ret;
In cases like this where only I2C is supported it's best to just remove all the ifdefs for I2C completely.
The datasheet says: The UDA1380 supports I2C-bus microcontroller interface mode as well as the L3-bus mode.