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,
>
> greg k-h
cu
Adrian
--"Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed
- 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:24 EST