]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: dwc2: add const to handling of dwc2_core_params
authorStephen Warren <swarren@wwwdotorg.org>
Mon, 29 Apr 2013 19:49:08 +0000 (19:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 22:23:56 +0000 (15:23 -0700)
commit90dbceafe8d812bde318c29ac844e57fb71c9418
tree2663e97412907efda56ec02c2a46a69caa0ae5c0
parent1208605f1aef0f4fc6b2eaefd6a698dd2214f35a
staging: dwc2: add const to handling of dwc2_core_params

Now the functions use proper const annotations, the global variable with
default params can be marked const, which prevents these values from
being changed for a specific device (in theory there could be multiple
controllers with different settings, for example).

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
[matthijs@stdin.nl: Split patch from bigger patch, marked
    dwc2_module_params in pci.c as const and added
    commit message]
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/core.c
drivers/staging/dwc2/hcd.c
drivers/staging/dwc2/hcd.h
drivers/staging/dwc2/pci.c