[i2c] [PATCH]i2c: Delete deprecated scx200_i2c driver

Jean Delvare khali at linux-fr.org
Mon Apr 23 11:27:24 CEST 2007

Hi Lennart,

On Sun, 22 Apr 2007 11:37:41 -0400, Lennart Sorensen wrote:
> On Fri, Apr 20, 2007 at 07:28:07PM +0200, Jean Delvare wrote:
> > If anybody still needs the functionality provided by this driver, the
> > new i2c-gpio driver should be used instead.
> And whatever syntax does one use for loading the new driver to do the
> same as this one does by default (as in use scx200 gpio 12 and 13)?

Contrary to scx200_i2c, i2c-gpio only creates a driver, it doesn't
instantiate devices. So you have to instantiate a platform device at the
board-level code. That platform device must have its name set to
"i2c-gpio", and its platform_data poiting to a properly filled struct
i2c_gpio_platform_data (as defined in <linux/i2c-gpio.h>.) As mentioned
earlier in this thread, you'll first have to convert the scx200 GPIO
code to the standard GPIO infrastructure, otherwise you won't be able
to fill the i2c_gpio_platform_data structure.

Jean Delvare

More information about the i2c mailing list