From: Kevin Hilman Date: Wed, 20 Apr 2011 23:31:23 +0000 (-0700) Subject: gpio/omap: consolidate direction, input, output, remove #ifdefs X-Git-Tag: v3.1-rc1~313^2~20^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa87931acb8203a1f40a3c637863ad238f70cd40;p=pandora-kernel.git gpio/omap: consolidate direction, input, output, remove #ifdefs Add register offset fields to GPIO platform_data for registers. This patch adds registers that control direction, input and output data. Using these register offsets in the common driver allows removal of #ifdefs and greatly improves readability. Also create dedicated data out functions: one for banks with dedicated set/clear registers, and another for banks with a single mask register. Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed