From 36cab2dc13b685a86d7a0d493f35a7c5a97bd0e3 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Fri, 1 Jul 2016 19:38:12 +0530 Subject: platform: tegra_prod: Remove unused APIs from public header Remove the APIs from public header which should not be used by client. Only kept the exported APIs and add missing document for the APIs. This will provide clean public header to client. Change-Id: I2037be835c5746f2c29bd999049e5434715bcfac Signed-off-by: Laxman Dewangan Reviewed-on: http://git-master/r/1175128 Reviewed-on: https://git-master.nvidia.com/r/1768535 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 | 51 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 13 deletions(-) (limited to 'include/linux') diff --git a/include/linux/tegra_prod.h b/include/linux/tegra_prod.h index bcb4463b1..c79519c50 100644 --- a/include/linux/tegra_prod.h +++ b/include/linux/tegra_prod.h @@ -17,24 +17,49 @@ #ifndef _TEGRA_PRODS_H #define _TEGRA_PRODS_H -struct tegra_prod_list; +struct tegra_prod; -#define tegra_prod tegra_prod_list - -int tegra_prod_set_list(void __iomem **base, - struct tegra_prod_list *tegra_prod_list); +/** + * tegra_prod_set_list(): Set all prods configurations + * @base: List of IO mapped registers. + * @tegra_prod: tegra_prod handle which is allocated by devm_tegra_prod_get() + * or tegra_prod_get_from_node(); + * + * Configure all the prod configuration listed on prod-setting nodes. + * + * Returns 0 on success otherwise negive error number for failed case. + */ +int tegra_prod_set_list(void __iomem **base, struct tegra_prod *tegra_prod); +/** + * tegra_prod_set_boot_init(): Set all prods configurations which has boot init + * flag on the prod setting nodes. + * @base: List of IO mapped registers. + * @tegra_prod: tegra_prod handle which is allocated by devm_tegra_prod_get() + * or tegra_prod_get_from_node(); + * + * Configure all the prod configuration listed on prod-setting nodes. + * + * Returns 0 on success otherwise negive error number for failed case. + */ int tegra_prod_set_boot_init(void __iomem **base, - struct tegra_prod_list *tegra_prod_list); + struct tegra_prod *tegra_prod); +/** + * tegra_prod_set_by_name(): Set prod configuration with specific prod name. + * This is used for conditional prod configurations. + * @base: List of IO mapped registers. + * @name: Name of conditional prod which need to be configure. + * @tegra_prod: tegra_prod handle which is allocated by devm_tegra_prod_get() + * or tegra_prod_get_from_node(); + * + * Configure prod configuration with specific prod name for conditional + * prod configurations. + * + * Returns 0 on success otherwise negive error number for failed case. + */ int tegra_prod_set_by_name(void __iomem **base, const char *name, - struct tegra_prod_list *tegra_prod_list); - -struct tegra_prod_list *tegra_prod_init(const struct device_node *np); - -struct tegra_prod_list *tegra_prod_get(struct device *dev, const char *name); - -int tegra_prod_release(struct tegra_prod_list **tegra_prod_list); + struct tegra_prod *tegra_prod); /** * devm_tegra_prod_get(): Get the prod handle from the device. -- cgit v1.2.2