Phil Carmody fffba64ca3 mfd: Fix error in wm8400 reg cache access check
Accessing num_reg elements in the interval [reg .. reg+num_regs)
is permitted if (reg+numregs <= array size), so barf when that
excluded upper bound is > array size. The prior -1 would give
access to one too many elements.

Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2010-05-28 01:37:40 +02:00
..
2010-05-28 01:37:28 +02:00
2010-05-28 01:37:28 +02:00
2010-05-28 01:37:28 +02:00
2010-05-28 01:37:38 +02:00
2010-05-28 01:37:38 +02:00
2010-05-26 13:07:56 +01:00
2010-05-28 01:37:28 +02:00
2010-05-28 01:37:32 +02:00
2010-05-28 01:37:28 +02:00
2010-05-28 01:37:28 +02:00