Skip to contentSkip to conversation

I2C algorithm IDs

DISCUSSION Russell King 2 participants 2 messages Jan 22, 2005 – Feb 1, 2005

lore
Share & tools
lore
#0 lore raw

Greg,

Are I2C algorithm IDs supposed to be unique? Do they have any meaning in reality at all? If the answer is yes to either of these questions, the following should probably be resolved:

#define I2C_ALGO_PCA    0x150000        /* PCA 9564 style adapters      */
#define I2C_ALGO_SIBYTE 0x150000        /* Broadcom SiByte SOCs         */
Signature · 1 line
Russell King
#1 lore raw
Quoted 5 lines · Russell King

Greg,

Are I2C algorithm IDs supposed to be unique? Do they have any meaning in reality at all? If the answer is yes to either of these questions, the following should probably be resolved:

Yes, they are used in some places, and yes they do need to be unique.

Quoted 2 lines
#define I2C_ALGO_PCA    0x150000        /* PCA 9564 style adapters      */
#define I2C_ALGO_SIBYTE 0x150000        /* Broadcom SiByte SOCs         */

Thanks for pointing this out, I've gone and fixed this up and will send the patch upward.

thanks,

greg k-h