summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-07-28 00:58:48 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2009-09-17 09:46:53 +0200
commitbd8ef10261d7ae92ad2b4925afd2b56f46175c47 (patch)
treef88c4992b1473ff5b72dc5d0b97522bf964363d4 /include
parented52e62ebec9e703eb0b69704feaf1b6e847d882 (diff)
mfd: revise locking for pcf50633 ADC
Current implementation is prone to races, this patch attempts to remove all but one (in pcf50633_adc_sync_read). The idea is that we need to guard the queue access only on inserting and removing items. If we insert and there're no more items in the queue it means that the last irq already happened and we need to trigger ADC manually. If not, then the next conversion will be triggered by the irq handler upon completion of the previous. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions