~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/comedi/drivers/dmm32at.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
532
532
                msb = dmm_inb(dev, DMM32AT_AIMSB);
533
533
 
534
534
                /* invert sign bit to make range unsigned, this is an
535
 
                   idiosyncracy of the diamond board, it return
 
535
                   idiosyncrasy of the diamond board, it return
536
536
                   conversions as a signed value, i.e. -32768 to
537
537
                   32767, flipping the bit and interpreting it as
538
538
                   signed gives you a range of 0 to 65535 which is