Re: [2.5.66-bk9] : undefined reference to `i2c_detect'

From: Greg KH (greg@kroah.com)
Date: Mon Apr 07 2003 - 11:32:32 EST


On Sat, Apr 05, 2003 at 12:29:23AM +0200, Adrian Bunk wrote:
> On Thu, Apr 03, 2003 at 02:39:01PM -0800, Greg KH wrote:
> > On Thu, Apr 03, 2003 at 05:27:53PM -0500, Vagn Scott wrote:
> > >
> > > CONFIG_SENSORS_LM75=y
> > > CONFIG_SENSORS_VIA686A=y
> > > CONFIG_I2C_SENSOR=m
> >
> > Ok, I need a bit of Kconfig help for drivers/i2c/chips to set
> > CONFIG_I2C_SENSOR to be "y" if either of those two drivers are selected
> > as "y". Anyone know how?
>
> The following (untested) should work:
>
> config I2C_SENSOR
> tristate
> default y if SENSORS_ADM1021=y || SENSORS_LM75=y || SENSORS_VIA686A=y || SENSORS_W83781D=y
> default m if SENSORS_ADM1021=m || SENSORS_LM75=m || SENSORS_VIA686A=m || SENSORS_W83781D=m
> default n

Thanks, that worked out great. I'll make up a patch and send it on.

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/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:32 EST