Re: [PATCH] Export symbol from I2C eeprom driver

From: Jon Smirl
Date: Mon Jan 10 2005 - 21:30:22 EST


On Mon, 10 Jan 2005 15:47:26 -0800, Greg KH <greg@xxxxxxxxx> wrote:
> > I don't want to load the driver from the script because the radeon
> > driver is creating a sysfs link into the eeprom directory from the
> > radeon one.
>
> How are you getting the kobject to the eeprom directory from the radeon
> driver?
>

I own the private I2C bus and eeprom is the only chip that will attach
to the bus. I need to do the link in the driver since there are four
busses and upto two monitors. The driver knows how to pair the head up
with the right bus.

if (dev_priv->primary_head.connector != ddc_none)
list_for_each(item,
&dev_priv->i2c[dev_priv->primary_head.connector].adapter.clients) {
client = list_entry(item, struct i2c_client, list);
sysfs_create_link(&dev->primary.dev_class->kobj,
&client->dev.kobj, "monitor");
break;
}

--
Jon Smirl
jonsmirl@xxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/