From 0eef90aef2aa88b7ec830327e7eb7e3b25bdb170 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 12 Jul 2016 15:41:22 +0530 Subject: 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 Reviewed-on: http://git-master/r/1179153 Reviewed-on: https://git-master.nvidia.com/r/1768541 Tested-by: Nicolin Chen GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra_prod.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/linux') 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 @@ -61,6 +61,18 @@ int tegra_prod_set_boot_init(void __iomem **base, int tegra_prod_set_by_name(void __iomem **base, const char *name, struct tegra_prod *tegra_prod); +/** + * tegra_prod_by_name_supported - Tell whether tegra prod will be supported by + * given name or not. + * @tegra_prod: the list of tegra prods. + * @name: the name of tegra prod need to set. + * + * Find the tegra prod in the list according to the name. If it exist then + * return true else false. + */ +bool tegra_prod_by_name_supported(struct tegra_prod *tegra_prod, + const char *name); + /** * devm_tegra_prod_get(): Get the prod handle from the device. * @dev: Device handle on which prod setting nodes are available. -- cgit v1.2.2