diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-12-23 16:59:55 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-01 18:29:35 -0500 |
| commit | 600c395bf6c4e44ec831e850d7f93ce53d7373be (patch) | |
| tree | 5fd394811a50f7edbcab38c06dde00c507475477 /include/linux | |
| parent | 74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 (diff) | |
powercap: constify powercap_zone_ops and powercap_zone_constraint_ops structures
The powercap_zone_ops and powercap_zone_constraint_ops structures are never
modified, so declare them as const.
Most of the actual changes adjust indentation to accomodate the const
keyword.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/powercap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/powercap.h b/include/linux/powercap.h index 4e250417ee30..f0a4e6257dcc 100644 --- a/include/linux/powercap.h +++ b/include/linux/powercap.h | |||
| @@ -208,7 +208,7 @@ struct powercap_zone_constraint_ops { | |||
| 208 | struct powercap_zone_constraint { | 208 | struct powercap_zone_constraint { |
| 209 | int id; | 209 | int id; |
| 210 | struct powercap_zone *power_zone; | 210 | struct powercap_zone *power_zone; |
| 211 | struct powercap_zone_constraint_ops *ops; | 211 | const struct powercap_zone_constraint_ops *ops; |
| 212 | }; | 212 | }; |
| 213 | 213 | ||
| 214 | 214 | ||
| @@ -309,7 +309,7 @@ struct powercap_zone *powercap_register_zone( | |||
| 309 | struct powercap_zone *parent, | 309 | struct powercap_zone *parent, |
| 310 | const struct powercap_zone_ops *ops, | 310 | const struct powercap_zone_ops *ops, |
| 311 | int nr_constraints, | 311 | int nr_constraints, |
| 312 | struct powercap_zone_constraint_ops *const_ops); | 312 | const struct powercap_zone_constraint_ops *const_ops); |
| 313 | 313 | ||
| 314 | /** | 314 | /** |
| 315 | * powercap_unregister_zone() - Unregister a zone device | 315 | * powercap_unregister_zone() - Unregister a zone device |
