OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b17c7
)
usb: chipidea: usb2: constify zynq_pdata
author
Michał Mirosław
<mirq-linux@rere.qmqm.pl>
Fri, 3 Apr 2020 23:59:58 +0000
(
01:59
+0200)
committer
Peter Chen
<peter.chen@nxp.com>
Wed, 8 Apr 2020 01:36:43 +0000
(09:36 +0800)
pdata is copied anyway to allow setting device name.
Make the source const.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_usb2.c
patch
|
blob
|
history
diff --git
a/drivers/usb/chipidea/ci_hdrc_usb2.c
b/drivers/usb/chipidea/ci_hdrc_usb2.c
index
c044fba
..
62cf8a9
100644
(file)
--- a/
drivers/usb/chipidea/ci_hdrc_usb2.c
+++ b/
drivers/usb/chipidea/ci_hdrc_usb2.c
@@
-28,7
+28,7
@@
static const struct ci_hdrc_platform_data ci_default_pdata = {
.flags = CI_HDRC_DISABLE_STREAMING,
};
-static struct ci_hdrc_platform_data ci_zynq_pdata = {
+static
const
struct ci_hdrc_platform_data ci_zynq_pdata = {
.capoffset = DEF_CAPOFFSET,
};