Re: [spi-devel-general] Accelerometer, Gyros and ADC's etc within the kernel.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ben Dooks
Date: Tuesday, May 27, 2008 - 10:16 am

On Wed, May 21, 2008 at 09:49:42AM -0400, Dmitry Torokhov wrote:

I concur for these sorts of devices, where the connectivity to the
device is quite an easy part of the driver, thus you end up with tiny
little bus drivers all over the place, and a main core driver. The kernel
build system should allow easy selection of interface depending on what
is available without huge #ifdef hacks. An example could be:

Makefile:
mysensor-y		:= mysensor-core.o
mysensor-$(CONFIG_SPI)	+= mysensor-spi.o
mysensor-$(CONFIG_I2C)	+= mysensor-i2c.o
obj-$(CONFIG_MYSENSOR)	+= mysensor.o


Can you explain to me how the input system anonymizes things? I thought
it was quite easy to read the name of the device? You could easily add
a symlink from the driver's device binding in sysfs to the relevant
input device as well.

Also, why would you not want all your accelerometers grouped into a set
of accelerometers? If your application software just searches all input
devices for anything reporting itself as an accelerometer, then it would
get the right result... 

-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Accelerometer, Gyros and ADC's etc within the kernel., Jonathan Cameron, (Tue May 20, 3:04 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., Jonathan Cameron, (Wed May 21, 3:04 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., Dmitry Torokhov, (Wed May 21, 6:49 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., Henrique de Moraes H ..., (Wed May 21, 7:09 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., David Brownell, (Wed May 21, 5:52 pm)
Re: Accelerometer, Gyros and ADC's etc within the kernel., David Brownell, (Wed May 21, 5:53 pm)
Re: [spi-devel-general] Accelerometer, Gyros and ADC's etc ..., Ben Dooks, (Tue May 27, 10:16 am)
Re: [spi-devel-general] Accelerometer, Gyros and ADC's etc ..., Jonathan Cameron, (Tue May 27, 10:59 am)
Re: [spi-devel-general] Accelerometer, Gyros and ADC's etc ..., Jonathan Cameron, (Tue May 27, 11:00 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., David Brownell, (Tue May 27, 4:42 pm)
Re: Accelerometer etc subsystem (Update on progress), Jonathan Cameron, (Thu Jun 26, 11:01 am)
Re: Accelerometer etc subsystem (Update on progress), Jonathan Cameron, (Thu Jun 26, 11:26 am)
Re: Accelerometer etc subsystem (Update on progress), Randy Dunlap, (Thu Jun 26, 7:39 pm)
Re: Accelerometer etc subsystem (Update on progress), Ben Nizette, (Thu Jun 26, 8:29 pm)