Skip to content

Commit

Permalink
usb: gadget: ci13xxx: redo register access
Browse files Browse the repository at this point in the history
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 <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alexander Shishkin authored and Greg Kroah-Hartman committed May 9, 2012
1 parent d3595d1 commit 262c163
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 128 deletions.
Loading

0 comments on commit 262c163

Please sign in to comment.