summaryrefslogtreecommitdiff
path: root/include/power-domain.h
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2019-06-07 16:54:44 +0300
committerTom Rini <trini@konsulko.com>2019-07-27 04:49:22 +0300
commitfd4e7be5f3cea71cd598e7afe8cece19541529c7 (patch)
tree1b764e67296a2c2c89da71536e5e9ce86ca43b98 /include/power-domain.h
parentc0669d28ee5dc06a372e39191d9643de8aa62e9e (diff)
downloadu-boot-fd4e7be5f3cea71cd598e7afe8cece19541529c7.tar.xz
power-domain: Add private data to power domain
Certain drivers want to attach private data corresponding to each power domain. This data might be specific be to the drvier. So add a priv entry into the power_domain structure. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/power-domain.h')
-rw-r--r--include/power-domain.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/power-domain.h b/include/power-domain.h
index 07370709fe..ef15dc9f60 100644
--- a/include/power-domain.h
+++ b/include/power-domain.h
@@ -55,23 +55,12 @@ struct udevice;
*
* @dev: The device which implements the power domain.
* @id: The power domain ID within the provider.
- *
- * Currently, the power domain API assumes that a single integer ID is enough
- * to identify and configure any power domain for any power domain provider. If
- * this assumption becomes invalid in the future, the struct could be expanded
- * to either (a) add more fields to allow power domain providers to store
- * additional information, or (b) replace the id field with an opaque pointer,
- * which the provider would dynamically allocate during its .of_xlate op, and
- * process during is .request op. This may require the addition of an extra op
- * to clean up the allocation.
+ * @priv: Private data corresponding to each power domain.
*/
struct power_domain {
struct udevice *dev;
- /*
- * Written by of_xlate. We assume a single id is enough for now. In the
- * future, we might add more fields here.
- */
unsigned long id;
+ void *priv;
};
/**