Skip to content
Commit 86f1a6e6 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Vinod Koul
Browse files

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: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20201109215844.167954-1-rikard.falkeborn@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 3cc8e867
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment