From mboxrd@z Thu Jan 1 00:00:00 1970 From: chandrasekhar@evolute.in (chandrasekhar) Date: Thu, 26 Jul 2018 14:43:07 +0530 Subject: Kernel API's for ADC In-Reply-To: <20180725134643.GA12329@kroah.com> References: <000001d42401$cda46fa0$68ed4ee0$@in> <000b01d42409$154ed320$3fec7960$@in> <20180725134643.GA12329@kroah.com> Message-ID: <000f01d424c0$de60beb0$9b223c10$@in> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org I am using freescale IMX6UL processor. I have to do it in kernel space, I have a thermal printer attached to the processor and I have to continuously monitor temperature of the printer head inorder to change he printing time values. So based on the temperature values I have to decide dynamically how much the printing time should be or if it reaches threshold I will throw a error. We already wrote a driver which involves SPI communication, motor rotation and strobe(heating the paper) handling in driver, within the same driver I want the temperature/ADC reading has to be done. Thanks and Regards, Chandrasekhar -----Original Message----- From: Greg KH [mailto:greg at kroah.com] Sent: Wednesday, July 25, 2018 7:17 PM To: chandrasekhar Cc: 'Daniel Baluta'; 'Kernelnewbies' Subject: Re: Kernel API's for ADC On Wed, Jul 25, 2018 at 04:47:29PM +0530, chandrasekhar wrote: > Not on the sysfs interface. I want to read the ADC using kernel API's in > kernel space. For your specific driver and device, or for "any" driver/device? And why do you need this, what are you going to do with that information? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies