projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03978d4
)
soc/tegra: Add stub for soc_is_tegra()
author
Dmitry Osipenko
<digetx@gmail.com>
Thu, 27 May 2021 23:54:02 +0000
(
02:54
+0300)
committer
Thierry Reding
<treding@nvidia.com>
Tue, 1 Jun 2021 10:14:44 +0000
(12:14 +0200)
Add stub required for compile-testing of drivers.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/soc/tegra/common.h
patch
|
blob
|
history
diff --git
a/include/soc/tegra/common.h
b/include/soc/tegra/common.h
index 98027a76ce3d32cdbf90bbe2b2a9491489070461..744280ecab5f7e881ab0409cb56eddc01917a44d 100644
(file)
--- a/
include/soc/tegra/common.h
+++ b/
include/soc/tegra/common.h
@@
-6,6
+6,15
@@
#ifndef __SOC_TEGRA_COMMON_H__
#define __SOC_TEGRA_COMMON_H__
+#include <linux/types.h>
+
+#ifdef CONFIG_ARCH_TEGRA
bool soc_is_tegra(void);
+#else
+static inline bool soc_is_tegra(void)
+{
+ return false;
+}
+#endif
#endif /* __SOC_TEGRA_COMMON_H__ */