gpio: sch: Consolidate similar algorithms
authorChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Wed, 21 Jan 2015 10:32:21 +0000 (18:32 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 29 Jan 2015 12:46:29 +0000 (13:46 +0100)
commit920dfd824789b4058e91d26e2c6dd01a00ab28ec
tree238a4284152f85fae62b79463d6f4c0eb1d59da8
parent68d77d5168bdb922e0f100d0ee5e5e78aa0989af
gpio: sch: Consolidate similar algorithms

Consolidating similar algorithms into common functions to make
GPIO SCH simpler and manageable.

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sch.c