usb: dwc3: Correct DWC3_DCTL_HIRD_THRES definition
commit7e39b817ee64a8b67282c76f52aaabddc8a5cd26
authorPratyush Anand <pratyush.anand@st.com>
Wed, 6 Jun 2012 13:48:29 +0000 (6 19:18 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 13:56:10 +0000 (6 16:56 +0300)
treee8a7fbc59ea3327ce3850abf5b0863ffc01e3b73
parent3336abb5b608300550136ddab7a7101b30d45fa7
usb: dwc3: Correct DWC3_DCTL_HIRD_THRES definition

The definition of DWC3_DCTL_HIRD_THRES macro is
completely wrong. It will only work for when we
want to read the register's contents for that bitfield.

Change the macro so that it can be used to writing to
the register, and when we need to read, we can add
extra right shift of 24 bits.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
[ balbi@ti.com: add a commit log ]

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h