diff options
author | Sivaram Nair <sivaramn@nvidia.com> | 2012-08-07 10:17:00 +0300 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-08-09 21:11:22 -0700 |
commit | 7ce7bd33c2ee88551871fedf824814e848371c25 (patch) | |
tree | 358b370cd990c8c1744bc0aef45cda0a1608c2da | |
parent | e75a4c54886a433f02c23a7e4a83bd2515a108cd (diff) |
pm: EDP: allow heap allocation
Remove the const qualifiers from EDP manager and client structures which
prevents their allocation on heap.
Change-Id: Id583d2e8fbf564bf1a6530a29b1d3d0983a52abc
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/121565
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
-rw-r--r-- | include/linux/edp.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/edp.h b/include/linux/edp.h index 571c3ef74f37..5d069d263ed0 100644 --- a/include/linux/edp.h +++ b/include/linux/edp.h @@ -25,8 +25,8 @@ #define EDP_NAME_LEN 16 struct edp_manager { - const char name[EDP_NAME_LEN]; - const unsigned int imax; + char name[EDP_NAME_LEN]; + unsigned int imax; /* internal */ struct list_head link; @@ -46,11 +46,11 @@ struct edp_manager { * Note that each EDP client is tied to a single EDP manager */ struct edp_client { - const char name[EDP_NAME_LEN]; - const unsigned int *const states; - const unsigned int num_states; - const unsigned int e0_index; - const unsigned int max_borrowers; + char name[EDP_NAME_LEN]; + unsigned int *states; + unsigned int num_states; + unsigned int e0_index; + unsigned int max_borrowers; void (*notify_loan_update)(unsigned int new_size, struct edp_client *lender); |