]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: bdc: Fix misleading register names
authorAl Cooper <alcooperx@gmail.com>
Wed, 19 Jul 2017 19:11:40 +0000 (15:11 -0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 11:18:56 +0000 (14:18 +0300)
commit5916733e9b689ea1e713bee87b445d2accfef0ea
tree1dea6ecd68c732cd45182e6e095483f44d92fec8
parent73517cf49bd449122b615d2b7a6bb835f02252e5
usb: bdc: Fix misleading register names

The BDC endpoint status registers 0-7 were originally each going
to be an array of regsiters. This was later changed to being a
single register. The register definitions are being changed from:
"#define BDC_EPSTS0(n)  (0x60 + (n * 0x10))"
to
"#define BDC_EPSTS0 0x60"
to reflect this change and to avoid future coding mistakes.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/bdc/bdc.h
drivers/usb/gadget/udc/bdc/bdc_dbg.c
drivers/usb/gadget/udc/bdc/bdc_ep.c