[PATCH 2.6] Autoselect i2c algos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 18, 2004 at 11:00:33PM +0100, Jean Delvare wrote:
> > > BTW, wouldn't it make sense to apply the same idea to i2c
> > > algorithms?
> > 
> > Yes it would.  Care to make a patch?
> 
> Ahahah I love it when you do that ;))
> 
> Here you go. I replaced all dependancies on algos with dependancies on
> I2C + select algo. There are some cases outside of the i2c subdirectory.
> 
> Also note that I slightly altered the condition to display the PCILynx
> comment. I added PCI to the dependencies, I think it's more logical that
> way. Without it, the user could get the message he/she needs I2C, go to
> enable it, come back and still not see the option.

I took out your dependancy on PCI you added to the PCILynx driver.
That's up to the ieee1394 people to determine :)

I applied that patch, and then had to add the following change to keep
us from trying to build MIPS specific code.

thanks,

greg k-h


# I2C: only select I2C_ITE if we are a MIPS system

diff -Nru a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
--- a/drivers/i2c/busses/Kconfig	Mon Jan 19 13:03:15 2004
+++ b/drivers/i2c/busses/Kconfig	Mon Jan 19 13:03:15 2004
@@ -122,7 +122,7 @@
 
 config I2C_ITE
 	tristate "ITE I2C Adapter"
-	depends on I2C
+	depends on I2C && MIPS_ITE8172
 	select I2C_ALGOITE
 	help
 	  This supports the ITE8172 I2C peripheral found on some MIPS



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux