summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2016-07-01 10:08:12 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-04 13:02:45 -0400
commit36cab2dc13b685a86d7a0d493f35a7c5a97bd0e3 (patch)
tree20dfce8fd0263be095a12890126070b26ec8b5d6 /include/linux
parentbdbd7fccbb83efdc7d32ae69161525adb408a729 (diff)
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 <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/1175128 Reviewed-on: https://git-master.nvidia.com/r/1768535 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/linux')
-rw-r--r--include/linux/tegra_prod.h51
1 files changed, 38 insertions, 13 deletions
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 @@
17#ifndef _TEGRA_PRODS_H 17#ifndef _TEGRA_PRODS_H
18#define _TEGRA_PRODS_H 18#define _TEGRA_PRODS_H
19 19
20struct tegra_prod_list; 20struct tegra_prod;
21 21
22#define tegra_prod tegra_prod_list 22/**
23 23 * tegra_prod_set_list(): Set all prods configurations
24int tegra_prod_set_list(void __iomem **base, 24 * @base: List of IO mapped registers.
25 struct tegra_prod_list *tegra_prod_list); 25 * @tegra_prod: tegra_prod handle which is allocated by devm_tegra_prod_get()
26 * or tegra_prod_get_from_node();
27 *
28 * Configure all the prod configuration listed on prod-setting nodes.
29 *
30 * Returns 0 on success otherwise negive error number for failed case.
31 */
32int tegra_prod_set_list(void __iomem **base, struct tegra_prod *tegra_prod);
26 33
34/**
35 * tegra_prod_set_boot_init(): Set all prods configurations which has boot init
36 * flag on the prod setting nodes.
37 * @base: List of IO mapped registers.
38 * @tegra_prod: tegra_prod handle which is allocated by devm_tegra_prod_get()
39 * or tegra_prod_get_from_node();
40 *
41 * Configure all the prod configuration listed on prod-setting nodes.
42 *
43 * Returns 0 on success otherwise negive error number for failed case.
44 */
27int tegra_prod_set_boot_init(void __iomem **base, 45int tegra_prod_set_boot_init(void __iomem **base,
28 struct tegra_prod_list *tegra_prod_list); 46 struct tegra_prod *tegra_prod);
29 47
48/**
49 * tegra_prod_set_by_name(): Set prod configuration with specific prod name.
50 * This is used for conditional prod configurations.
51 * @base: List of IO mapped registers.
52 * @name: Name of conditional prod which need to be configure.
53 * @tegra_prod: tegra_prod handle which is allocated by devm_tegra_prod_get()
54 * or tegra_prod_get_from_node();
55 *
56 * Configure prod configuration with specific prod name for conditional
57 * prod configurations.
58 *
59 * Returns 0 on success otherwise negive error number for failed case.
60 */
30int tegra_prod_set_by_name(void __iomem **base, const char *name, 61int tegra_prod_set_by_name(void __iomem **base, const char *name,
31 struct tegra_prod_list *tegra_prod_list); 62 struct tegra_prod *tegra_prod);
32
33struct tegra_prod_list *tegra_prod_init(const struct device_node *np);
34
35struct tegra_prod_list *tegra_prod_get(struct device *dev, const char *name);
36
37int tegra_prod_release(struct tegra_prod_list **tegra_prod_list);
38 63
39/** 64/**
40 * devm_tegra_prod_get(): Get the prod handle from the device. 65 * devm_tegra_prod_get(): Get the prod handle from the device.