2.6 (eldk) - I2C constants

Naru Sundar nsundar at fulcrummicro.com
Sat May 27 00:33:11 EST 2006


Hello folks, I'm porting a 2.4 driver over to 2.6 and noted some 
weirdness in the I2C headers.  I thought it was worth checking out here.

include/linux/i2c.h in 2.4 defined the following constants:
#define I2C_M_TEN   0x10    /* we have a ten bit chip address   */
#define I2C_M_RD    0x01
#define I2C_M_WR        0x00    /* For readable code!                   */
#define I2C_M_NOSTART   0x4000
#define I2C_M_REV_DIR_ADDR  0x2000

in ELDK 2.6 source drop I have (2.6.15), the I2C_M_WR constant was removed.

Any thoughts? I can declare that constant locally in the driver, but 
since these were standard I2C message constants I thought something
odd was up (or am I missing something obvious).

Thanks

--
Naru Sundar <nsundar at fulcrummicro.com>
Fulcrum Microsystems
http://www.fulcrummicro.com



More information about the Linuxppc-embedded mailing list