[i2c] [PATCH 3/5] powerpc: Document device nodes for I2C devices.

Jean Delvare khali at linux-fr.org
Sat May 19 01:27:11 EST 2007


Hi Scott,

On Thu, 17 May 2007 14:32:11 -0500, Scott Wood wrote:
> (and the 
> i2c code in Linux should be fixed to allow drivers to specify multiple 
> match names).

Back when David proposed his new-style i2c code, I had the same
objection. But we addressed the need differently. If you look at struct
i2c_board_info, you'll see two string fields, driver_name and type. The
former specifies the driver name, the second specifies the exact device
variant. For drivers which support several device variants, the
platform code should fill both fields.

-- 
Jean Delvare



More information about the Linuxppc-dev mailing list