2010/2/13 arjun rath <[email protected]>: > can anybody share how to start a spi based ADC linux driver.I am having a > MAXIM 1242 ADC chip.
The ḱernel does not contain any generic ADC subsystem abstraction (I think it would be good if it did), instead most drivers using ADC have their ADC portions stored inside a driver for something else, e.g. drivers/hwmon for ADCs used in temperature monitoring, or drivers/power for ADCs used in monitoring of currents and voltages for power supplies/batteries. This is a bit bad for driving a generic ADC like this using spidev and, even if it was to be accessed from userspace only, having it under drivers/spi is rather counterintuitive, what happens when the next ADC using I2C turns up? drivers/i2c/chips? I would suggest creating subsystem drivers/adc if you have time and energy, other ideas? Linus Walleij ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
