]> git.baikalelectronics.ru Git - kernel.git/commit
phy: tegra: Constify static device_type structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 9 Nov 2020 21:58:44 +0000 (22:58 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 16 Nov 2020 07:34:57 +0000 (13:04 +0530)
commit096730d3d7407f2e7b7d355e86d34a95968ffffe
tree49c9a7db768a7cc0bc0fd52788a03382af8cea79
parent50686e73bf153bac7fb466f9628c9a639506b894
phy: tegra: Constify static device_type structs

The only usage of tegra_xusb_pad_type and tegra_xusb_port_type is to
assign their address to the type field in the device struct, which is a
const pointer. Make them const to allow the compiler to put them in
read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20201109215844.167954-1-rikard.falkeborn@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/xusb.c