summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2019-05-09 13:43:49 +0200
committerPatrick Rudolph <siro@das-labor.org>2019-05-12 07:47:45 +0000
commit2be0b50be5783f173989a7882f3650d2a106f974 (patch)
treee6833af837090e013eb98763dd1af80f4951472d /src/lib
parent2d7a52c784efb6be86bac5cb7aa1f8e1bd7088a6 (diff)
downloadcoreboot-2be0b50be5783f173989a7882f3650d2a106f974.tar.xz
boot_device: Constify argument
Add const qualifier to first argument. Change-Id: I6655e04401b6a7aa5cafb717ff6f46b80b96646e Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32703 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/boot_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/boot_device.c b/src/lib/boot_device.c
index 429a6d8710..e91a97f461 100644
--- a/src/lib/boot_device.c
+++ b/src/lib/boot_device.c
@@ -20,7 +20,7 @@ void __weak boot_device_init(void)
/* Provide weak do-nothing init. */
}
-int __weak boot_device_wp_region(struct region_device *rd,
+int __weak boot_device_wp_region(const struct region_device *rd,
const enum bootdev_prot_type type)
{
/* return a failure, make aware WP is not implemented */