diff options
author | Simon Glass <sjg@chromium.org> | 2020-01-26 22:06:27 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-25 14:46:57 -0600 |
commit | 961420fa5f3bcf837518e7f72d6f8c3ee090643d (patch) | |
tree | 45c39f46656140575aafa573299841a1ac9cab56 /arch/x86/cpu/broadwell | |
parent | fdc34368ddcd1d2eb46f9a1829f080f8c1760dee (diff) | |
download | u-boot-961420fa5f3bcf837518e7f72d6f8c3ee090643d.tar.gz |
cpu: Convert the methods to use a const udevice *
These functions should not modify the device. Convert them to const so
that callers don't need to cast if they have a const udevice *.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/broadwell')
-rw-r--r-- | arch/x86/cpu/broadwell/cpu_full.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/cpu/broadwell/cpu_full.c b/arch/x86/cpu/broadwell/cpu_full.c index 64a1cd414f..706f68f63d 100644 --- a/arch/x86/cpu/broadwell/cpu_full.c +++ b/arch/x86/cpu/broadwell/cpu_full.c @@ -626,12 +626,12 @@ void cpu_set_power_limits(int power_limit_1_time) } } -static int broadwell_get_info(struct udevice *dev, struct cpu_info *info) +static int broadwell_get_info(const struct udevice *dev, struct cpu_info *info) { return cpu_intel_get_info(info, INTEL_BCLK_MHZ); } -static int broadwell_get_count(struct udevice *dev) +static int broadwell_get_count(const struct udevice *dev) { return 4; } |