mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
staging: media: tegra-video: move tegra20_vip_soc declaration to vip.h
tegra20_vip_soc is shared across translation units but is currently declared via an extern in vip.c. Move the declaration to vip.h so users get it via the header and we avoid extern declarations in .c files, matching the pattern already used by tegra20_vi_soc and tegra210_vi_soc. Suggested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
ee138a2cfc
commit
597f8851c9
|
|
@ -263,10 +263,6 @@ static void tegra_vip_remove(struct platform_device *pdev)
|
|||
pm_runtime_disable(&pdev->dev);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
extern const struct tegra_vip_soc tegra20_vip_soc;
|
||||
#endif
|
||||
|
||||
static const struct of_device_id tegra_vip_of_id_table[] = {
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
{ .compatible = "nvidia,tegra20-vip", .data = &tegra20_vip_soc },
|
||||
|
|
|
|||
|
|
@ -50,6 +50,10 @@ struct tegra_vip_soc {
|
|||
const struct tegra_vip_ops *ops;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
|
||||
extern const struct tegra_vip_soc tegra20_vip_soc;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* struct tegra_vip - NVIDIA Tegra VIP device structure
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user