Thread (6 messages) 6 messages, 5 authors, 2010-06-25

Re: [Uclinux-dist-devel] [PATCH v3] input/misc: new ADXL345/346 driver

From: Mike Frysinger <hidden>
Date: 2009-10-21 02:39:28

Possibly related (same subject, not in this thread)

On Tue, Oct 20, 2009 at 14:46, Chris Verges wrote:
Hi Mike and Michael,
quoted
+config INPUT_ADXL34X
+config INPUT_ADXL34X_I2C
+config INPUT_ADXL34X_SPI
Should the INPUT_ADXL34X option be auto-selected when the _I2C or _SPI
counterparts are selected?  Something like:

config HAVE_INPUT_ADXL34X

config INPUT_ADXL34X
       depends on HAVE_INPUT_ADXL34X

config INPUT_ADXL34X_I2C
       bool "..."
       depends on I2C
       select HAVE_INPUT_ADXL34X

config INPUT_ADXL34X_SPI
       bool "..."
       depends on SPI_MASTER
       select HAVE_INPUT_ADXL34X

The end user would only see the INPUT_ADXL34X_SPI and INPUT_ADXL34X_I2C
options, with the common INPUT_ADXL34X option being automagically
selected due to the reverse dependencies.
while it should work nicely if we only dealt with bools, dealing with
tristates (and thus allowing the driver to be a module) doesnt work
cleanly.
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help