|
@@ -293,8 +293,8 @@ err_alloc:
|
|
|
}
|
|
|
|
|
|
static int create_constraints(struct powercap_zone *power_zone,
|
|
|
- int nr_constraints,
|
|
|
- struct powercap_zone_constraint_ops *const_ops)
|
|
|
+ int nr_constraints,
|
|
|
+ const struct powercap_zone_constraint_ops *const_ops)
|
|
|
{
|
|
|
int i;
|
|
|
int ret = 0;
|
|
@@ -492,13 +492,13 @@ static struct class powercap_class = {
|
|
|
};
|
|
|
|
|
|
struct powercap_zone *powercap_register_zone(
|
|
|
- struct powercap_zone *power_zone,
|
|
|
- struct powercap_control_type *control_type,
|
|
|
- const char *name,
|
|
|
- struct powercap_zone *parent,
|
|
|
- const struct powercap_zone_ops *ops,
|
|
|
- int nr_constraints,
|
|
|
- struct powercap_zone_constraint_ops *const_ops)
|
|
|
+ struct powercap_zone *power_zone,
|
|
|
+ struct powercap_control_type *control_type,
|
|
|
+ const char *name,
|
|
|
+ struct powercap_zone *parent,
|
|
|
+ const struct powercap_zone_ops *ops,
|
|
|
+ int nr_constraints,
|
|
|
+ const struct powercap_zone_constraint_ops *const_ops)
|
|
|
{
|
|
|
int result;
|
|
|
int nr_attrs;
|