drivers: clock_control: esp32: constify device config access

`const` was missing from one device config access.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-01-19 12:19:54 +01:00 committed by Carles Cufí
parent 51e552a9a3
commit 5efb4610cf

View File

@ -117,7 +117,7 @@ static int clock_control_esp32_get_rate(const struct device *dev,
static int clock_control_esp32_init(const struct device *dev)
{
struct esp32_clock_config *cfg = dev->config;
const struct esp32_clock_config *cfg = dev->config;
rtc_cpu_freq_config_t old_config;
rtc_cpu_freq_config_t new_config;
bool res;