]> git.baikalelectronics.ru Git - kernel.git/commit
MFD: ti_tscadc: ADC Clock check not required
authorPatil, Rachna <rachna@ti.com>
Sat, 20 Jul 2013 16:27:35 +0000 (17:27 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 31 Jul 2013 00:04:34 +0000 (02:04 +0200)
commit5f78729283dad840ae13a0fb40679ecbffdfbcca
tree7c3d2528a2bdb158fd6720637239c7c7716702cf
parent2a9077bc910b39eca703dcc05883493eb5117fc2
MFD: ti_tscadc: ADC Clock check not required

ADC is ideally expected to work at a frequency of 3MHz.
The present code had a check, which returned error if the frequency
went below the threshold  value. But since AM335x supports various
working frequencies, this check is not required.
Now the code just uses the internal ADC clock divider to set the ADC
frequency w.r.t the sys clock.

Signed-off-by: Patil, Rachna <rachna@ti.com>
Signed-off-by: Zubair Lutfullah <zubair.lutfullah@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ti_am335x_tscadc.c
include/linux/mfd/ti_am335x_tscadc.h