video: tegra: Staticize and constify driver ops
Set the ops structure as static const. The structure is not accessible from outside of this driver and is not going to be modified at runtime. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Acked-by: Svyatoslav Ryhel <clamor95@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -337,7 +337,7 @@ static ssize_t tegra_dsi_host_transfer(struct mipi_dsi_host *host,
|
||||
return count;
|
||||
}
|
||||
|
||||
struct mipi_dsi_host_ops tegra_dsi_bridge_host_ops = {
|
||||
static const struct mipi_dsi_host_ops tegra_dsi_bridge_host_ops = {
|
||||
.transfer = tegra_dsi_host_transfer,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user