linux-stable/drivers/usb/phy
Nishka Dasgupta f1b19006f4 usb: phy: phy-fsl-usb: Make structure fsl_otg_initdata constant
Static structure fsl_otg_initdata, of type fsl_otg_config, is used only
once, when the value of its field otg_port is assigned to another
variable. As fsl_otg_initdata.otg_port is of type u8, any changes to
its copy do not affect the original, and fsl_otg_initdata itself is
never modified. Hence make fsl_otg_initdata constant to protect it from
unintended modification.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2019-08-28 13:04:59 +03:00
..
Kconfig usb: gadget: fsl: fix link error against usb-gadget module 2019-05-03 09:13:47 +03:00
Makefile usb: phy: Add Kconfig entry for Tegra PHY driver 2018-04-23 09:50:57 +02:00
of.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-ab8500-usb.c usb: phy: ab8500: silence some uninitialized variable warnings 2018-10-18 19:44:39 +02:00
phy-am335x-control.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-am335x-control.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-am335x.c usb: phy: am335x: fix race condition in _probe 2019-01-28 15:31:43 +02:00
phy-fsl-usb.c usb: phy: phy-fsl-usb: Make structure fsl_otg_initdata constant 2019-08-28 13:04:59 +03:00
phy-fsl-usb.h USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-generic.c usb: phy-generic: Use gpiod_set_value_cansleep 2018-03-13 10:47:52 +02:00
phy-generic.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-gpio-vbus-usb.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-isp1301-omap.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-isp1301.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-keystone.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-mv-usb.c usb: phy: mv-usb: Remove set but not used variable 'phy' 2019-06-03 15:21:57 +02:00
phy-mv-usb.h USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-mxs-usb.c usb: phy: phy-mxs-usb: add imx7ulp support 2019-07-03 10:56:19 +03:00
phy-omap-otg.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-tahvo.c USB: move many drivers to use DEVICE_ATTR_RO 2018-01-24 08:49:52 +01:00
phy-tegra-usb.c usb: tegra: Move utmi-pads reset from ehci-tegra to tegra-phy 2018-04-23 09:50:57 +02:00
phy-twl6030-usb.c usb: phy: twl6030-usb: fix possible use-after-free on remove 2019-02-13 13:05:35 +02:00
phy-ulpi-viewport.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-ulpi.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy.c USB: phy: drop legacy board-file support 2018-04-22 15:58:24 +02:00