kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: greg@kroah.com ('Greg KH')
To: kernelnewbies@lists.kernelnewbies.org
Subject: Kernel API's for ADC
Date: Thu, 26 Jul 2018 11:59:15 +0200	[thread overview]
Message-ID: <20180726095915.GA7872@kroah.com> (raw)
In-Reply-To: <000f01d424c0$de60beb0$9b223c10$@in>

On Thu, Jul 26, 2018 at 02:43:07PM +0530, chandrasekhar wrote:
> 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. 

Great, then add to your driver the reading of the adc device and
properly handle it there in the driver itself.  You don't have to go
outside of the kernel at all or even outside of your driver.

And good luck with your driver, I wrote firmware for printers like this
over 20 years ago, it's a fun problem space to work in.

greg k-h

      reply	other threads:[~2018-07-26  9:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25 10:25 Kernel API's for ADC chandrasekhar
2018-07-25 11:07 ` Daniel Baluta
2018-07-25 11:17   ` chandrasekhar
2018-07-25 13:46     ` Greg KH
2018-07-26  9:13       ` chandrasekhar
2018-07-26  9:59         ` 'Greg KH' [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180726095915.GA7872@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).