aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Svärd <jonny.svaerd@arm.com>2021-11-05 12:41:23 +0100
committerJonny Svärd <jonny.svaerd@arm.com>2021-11-05 12:41:23 +0100
commitc1b9dbbf5b9c83e2f1b702eb1386adc7d2ac4057 (patch)
treef987646708783f028470c64e4837ee134e859493
parent136810fa7e8f7f21c0bfb17dd5c81b247fc1e305 (diff)
downloadethos-u-core-driver-c1b9dbbf5b9c83e2f1b702eb1386adc7d2ac4057.tar.gz
Fix incorrect enum type used21.11-rc1
No functional change as they both evaluate to the same numerical value. Change-Id: Ia84c19e08defa63067755389857c967698127d8c
-rw-r--r--src/ethosu_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c
index b5e3973..cfff045 100644
--- a/src/ethosu_driver.c
+++ b/src/ethosu_driver.c
@@ -676,7 +676,7 @@ enum ethosu_error_codes set_clock_and_power_request(struct ethosu_driver *drv,
{
drv->power_request |= (1 << client);
}
- else if (power_request == ETHOSU_CLOCK_Q_ENABLE)
+ else if (power_request == ETHOSU_POWER_Q_ENABLE)
{
drv->power_request &= ~(1 << client);
}