From ab3ea641ab30c81215b95576e52630fd4003e8ab Mon Sep 17 00:00:00 2001 From: Darren Krahn Date: Thu, 4 Feb 2016 13:57:27 -0800 Subject: [PATCH] nvram: Add const to input-only arrays. BUG=24397987 Change-Id: I534a8fc978e10e1277cb0c87b5942d182f7c2a79 --- include/hardware/nvram.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/hardware/nvram.h b/include/hardware/nvram.h index 535a95b1..a1868b57 100644 --- a/include/hardware/nvram.h +++ b/include/hardware/nvram.h @@ -197,9 +197,9 @@ struct nvram_device { */ nvram_result_t (*create_space)(const struct nvram_device* device, uint32_t index, uint64_t size_in_bytes, - nvram_control_t* control_list, + const nvram_control_t* control_list, uint32_t list_size, - uint8_t* authorization_value, + const uint8_t* authorization_value, uint32_t authorization_value_size); /** @@ -216,7 +216,8 @@ struct nvram_device { * |authorization_value|. */ nvram_result_t (*delete_space)(const struct nvram_device* device, - uint32_t index, uint8_t* authorization_value, + uint32_t index, + const uint8_t* authorization_value, uint32_t authorization_value_size); /** @@ -251,7 +252,7 @@ struct nvram_device { nvram_result_t (*write_space)(const struct nvram_device* device, uint32_t index, const uint8_t* buffer, uint64_t buffer_size, - uint8_t* authorization_value, + const uint8_t* authorization_value, uint32_t authorization_value_size); /** @@ -281,7 +282,7 @@ struct nvram_device { */ nvram_result_t (*read_space)(const struct nvram_device* device, uint32_t index, uint64_t num_bytes_to_read, - uint8_t* authorization_value, + const uint8_t* authorization_value, uint32_t authorization_value_size, uint8_t* buffer, uint64_t* bytes_read); @@ -303,7 +304,7 @@ struct nvram_device { */ nvram_result_t (*enable_write_lock)(const struct nvram_device* device, uint32_t index, - uint8_t* authorization_value, + const uint8_t* authorization_value, uint32_t authorization_value_size); /** @@ -326,7 +327,7 @@ struct nvram_device { */ nvram_result_t (*enable_read_lock)(const struct nvram_device* device, uint32_t index, - uint8_t* authorization_value, + const uint8_t* authorization_value, uint32_t authorization_value_size); };