From f9df8395c7f9b1b8d0ea9221595a97f2f4720359 Mon Sep 17 00:00:00 2001 From: Alexander Shishkin Date: Fri, 4 May 2012 16:47:16 +0300 Subject: [PATCH] usb: gadget: ci13xxx: rename register layouts Currently, the register prefixes in the driver seem to be mixed: the capability registers are the ones that contain capability information, such as number of hardware endpoints, while the registers that are used to program the controller are called operational registers. Normally, capability registers start at 0x100 offset of the register window and are followed by operational registers. In some versions, however, capability registers start at 0x0 offset. This patch renames the register and adjusts their offsets appropriately, leaving the possibility of having a non-standard capability offset. I couldn't find any mentions of the TESTMODE register anywhere, so I suspect it might only be enabled in chipidea internal versions of the controller and I'm really inclined to remove it from the driver or at least hiding it behind a config option. Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed