summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2014-10-02 02:36:20 (GMT)
committerFelipe Balbi <balbi@ti.com>2014-10-23 14:55:43 (GMT)
commitfd4850cfd4e4060ec85a9db590b5d0e23eec68f5 (patch)
tree8f83819c840bda282412ab8cd6a120a9203a6a36
parentb585a48b8a9486f26a68886278f2c8f981676dd4 (diff)
downloadlinux-fd4850cfd4e4060ec85a9db590b5d0e23eec68f5.tar.xz
usb: dwc2: Bits in bitfield should add up to 32
The unioned u32 is used for clearing etc. Having the number of bitfield bits add up to more than 32 is broken, even if benign. Acked-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Charles Manning <cdhmanning@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/dwc2/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
index bf015ab..55c90c5 100644
--- a/drivers/usb/dwc2/core.h
+++ b/drivers/usb/dwc2/core.h
@@ -619,7 +619,7 @@ struct dwc2_hsotg {
unsigned port_suspend_change:1;
unsigned port_over_current_change:1;
unsigned port_l1_change:1;
- unsigned reserved:26;
+ unsigned reserved:25;
} b;
} flags;