diff options
author | Al Cooper | 2017-07-19 21:11:40 +0200 |
---|---|---|
committer | Felipe Balbi | 2017-08-15 13:18:56 +0200 |
commit | 5916733e9b689ea1e713bee87b445d2accfef0ea (patch) | |
tree | 1dea6ecd68c732cd45182e6e095483f44d92fec8 /drivers/usb/gadget/udc/bdc/bdc_ep.c | |
parent | usb: gadget: add RNDIS configfs options for class/subclass/protocol (diff) | |
download | kernel-qcow2-linux-5916733e9b689ea1e713bee87b445d2accfef0ea.tar.gz kernel-qcow2-linux-5916733e9b689ea1e713bee87b445d2accfef0ea.tar.xz kernel-qcow2-linux-5916733e9b689ea1e713bee87b445d2accfef0ea.zip |
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>
Diffstat (limited to 'drivers/usb/gadget/udc/bdc/bdc_ep.c')
-rw-r--r-- | drivers/usb/gadget/udc/bdc/bdc_ep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.c b/drivers/usb/gadget/udc/bdc/bdc_ep.c index ff1ef24d1777..bfd8f7ade935 100644 --- a/drivers/usb/gadget/udc/bdc/bdc_ep.c +++ b/drivers/usb/gadget/udc/bdc/bdc_ep.c @@ -777,9 +777,9 @@ static int ep_dequeue(struct bdc_ep *ep, struct bdc_req *req) */ /* The current hw dequeue pointer */ - tmp_32 = bdc_readl(bdc->regs, BDC_EPSTS0(0)); + tmp_32 = bdc_readl(bdc->regs, BDC_EPSTS0); deq_ptr_64 = tmp_32; - tmp_32 = bdc_readl(bdc->regs, BDC_EPSTS1(0)); + tmp_32 = bdc_readl(bdc->regs, BDC_EPSTS1); deq_ptr_64 |= ((u64)tmp_32 << 32); /* we have the dma addr of next bd that will be fetched by hardware */ |