Skip to content

Commit

Permalink
ARM: cpuidle: add const qualifier to cpuidle_ops member in structures
Browse files Browse the repository at this point in the history
The core code does not modify smp_operations structures. To clarify it,
this patch adds 'const' qualifier to the 'ops' member of struct
of_cpuidle_method.

This change allows each arm cpuidle code to add 'const' qualifier to
its cpuidle_ops structure.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
  • Loading branch information
Jisheng Zhang authored and Daniel Lezcano committed Apr 20, 2016
1 parent c3b46c7 commit 33475a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/include/asm/cpuidle.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct cpuidle_ops {

struct of_cpuidle_method {
const char *method;
struct cpuidle_ops *ops;
const struct cpuidle_ops *ops;
};

#define CPUIDLE_METHOD_OF_DECLARE(name, _method, _ops) \
Expand Down

0 comments on commit 33475a8

Please sign in to comment.