diff options
author | Min Guo <min.guo@mediatek.com> | 2020-01-15 07:25:44 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-15 14:46:59 +0100 |
commit | 9c93d7fd464e7aad59c2afc261f80e6e0fbe2ca9 (patch) | |
tree | 72421805a32bfa70562b0aa395881a8cb916fa33 /drivers/usb/musb/tusb6010.c | |
parent | edce61776c7e212d8b3d61e69afe7672efbacb04 (diff) | |
download | linux-stable-9c93d7fd464e7aad59c2afc261f80e6e0fbe2ca9.tar.gz linux-stable-9c93d7fd464e7aad59c2afc261f80e6e0fbe2ca9.tar.bz2 linux-stable-9c93d7fd464e7aad59c2afc261f80e6e0fbe2ca9.zip |
usb: musb: Add musb_clearb/w() interface
Delete the const attribute of addr parameter in readb/w/l hooks, these
changes are for implementing clearing W1C registers.
Replace musb_readb/w with musb_clearb/w to clear the interrupt status.
While at here, change some unsigned type to u32 to fix checkpatch.pl
warnings.
Signed-off-by: Min Guo <min.guo@mediatek.com>
[b-liu@ti.com: fix checkpatch.pl warnings.]
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200115132547.364-23-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/tusb6010.c')
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 39453287b5c3..5d449089e3ad 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -142,7 +142,7 @@ static void tusb_ep_select(void __iomem *mbase, u8 epnum) /* * TUSB6010 doesn't allow 8-bit access; 16-bit access is the minimum. */ -static u8 tusb_readb(const void __iomem *addr, unsigned offset) +static u8 tusb_readb(void __iomem *addr, u32 offset) { u16 tmp; u8 val; |