Messages in this thread | | | Date | Wed, 12 Jan 2005 15:21:12 -0800 | From | Greg KH <> | Subject | Re: [PATCH] Export symbol from I2C eeprom driver |
| |
On Mon, Jan 10, 2005 at 09:20:49PM -0500, Jon Smirl wrote: > On Mon, 10 Jan 2005 15:47:26 -0800, Greg KH <greg@kroah.com> 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; > }
Ick. Oh well, sure, that's ok. But I really think that a Kconfig rule could be made for this, instead of trying to pull an exported symbol in.
And I have a patch in my queue to delete that id, so you will have to come up with another symbol in the driver to do that with :)
thanks,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |