diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2016-07-12 06:11:22 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-04 13:03:07 -0400 |
commit | 0eef90aef2aa88b7ec830327e7eb7e3b25bdb170 (patch) | |
tree | c4c37191d694662b7f0623cf629f67c86a758c21 /include | |
parent | d35fc76332ef10eab26d8d6d894f59acd9756e00 (diff) |
platform: tegra: Add support to find prod setting
Sometime it is required to find that given prod names are
supported on platform or not before call for setup.
Add APIs to find whether prod name is supported or not on
given platform.
bug 200215286
Change-Id: Ife24d2480203ea8aacc5591accabb75d9b1b3060
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1179153
Reviewed-on: https://git-master.nvidia.com/r/1768541
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_prod.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/tegra_prod.h b/include/linux/tegra_prod.h index 6887ef42b..1a33bf20e 100644 --- a/include/linux/tegra_prod.h +++ b/include/linux/tegra_prod.h | |||
@@ -62,6 +62,18 @@ int tegra_prod_set_by_name(void __iomem **base, const char *name, | |||
62 | struct tegra_prod *tegra_prod); | 62 | struct tegra_prod *tegra_prod); |
63 | 63 | ||
64 | /** | 64 | /** |
65 | * tegra_prod_by_name_supported - Tell whether tegra prod will be supported by | ||
66 | * given name or not. | ||
67 | * @tegra_prod: the list of tegra prods. | ||
68 | * @name: the name of tegra prod need to set. | ||
69 | * | ||
70 | * Find the tegra prod in the list according to the name. If it exist then | ||
71 | * return true else false. | ||
72 | */ | ||
73 | bool tegra_prod_by_name_supported(struct tegra_prod *tegra_prod, | ||
74 | const char *name); | ||
75 | |||
76 | /** | ||
65 | * devm_tegra_prod_get(): Get the prod handle from the device. | 77 | * devm_tegra_prod_get(): Get the prod handle from the device. |
66 | * @dev: Device handle on which prod setting nodes are available. | 78 | * @dev: Device handle on which prod setting nodes are available. |
67 | * | 79 | * |