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>
This commit is contained in:
parent
2d7a52c784
commit
2be0b50be5
|
@ -109,7 +109,7 @@ const struct spi_flash *boot_device_spi_flash(void)
|
|||
return car_get_var_ptr(&sfg);
|
||||
}
|
||||
|
||||
int boot_device_wp_region(struct region_device *rd,
|
||||
int boot_device_wp_region(const struct region_device *rd,
|
||||
const enum bootdev_prot_type type)
|
||||
{
|
||||
uint32_t ctrlr_pr;
|
||||
|
|
|
@ -65,7 +65,7 @@ int boot_device_rw_subregion(const struct region *sub,
|
|||
* by the region device.
|
||||
* Returns 0 on success, < 0 on error.
|
||||
*/
|
||||
int boot_device_wp_region(struct region_device *rd,
|
||||
int boot_device_wp_region(const struct region_device *rd,
|
||||
const enum bootdev_prot_type type);
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue