summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-12-18 13:26:09 +0100
committerAngel Pons <th3fanbus@gmail.com>2021-12-20 12:18:14 +0000
commit4b9ac2c9933617545a7a6d9f14bc8e822902f9c1 (patch)
tree3df6bd22abf74e50baa20c8716e65d54586eb1b4 /src/include
parenta2c10a25391a739186caa43799657a4bf8959c3b (diff)
mb/starlabs/labtop: Add enum for `power_profile`
Introduce and use an enum for the `power_profile` CMOS option. Add a helper function that converts CMOS values into enum values. Using an enum allows GCC to warn about switch statements using enum types for their control expressions not handling all possible enum values, and also improves readability. Change-Id: I47a453ea12d164d26908a9944a89a481757e753c Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60212 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <admin@starlabs.systems> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions