From: Alexander Shishkin Date: Tue, 8 May 2012 20:28:59 +0000 (+0300) Subject: usb: gadget: ci13xxx: redo register access X-Git-Tag: v3.5-rc1~149^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=262c16320a915c26c927c9f7ddb0e1fe42fa0267;p=pandora-kernel.git usb: gadget: ci13xxx: redo register access Use lookup table instead of conditional macrodefinitions of register addresses. With two different possible register layouts and different register offsets, it's easiest to build a table with register addresses at probe time, based on the information supplied from the platform and device capabilities. This way we get rid of branch-per-register-access. Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed