diff options
-rw-r--r-- | common/android_ab.c | 2 | ||||
-rw-r--r-- | include/android_ab.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/android_ab.c b/common/android_ab.c index 3092c3c08c..2755dfc545 100644 --- a/common/android_ab.c +++ b/common/android_ab.c @@ -182,7 +182,7 @@ static int ab_compare_slots(const struct slot_metadata *a, return 0; } -int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info) +int ab_select_slot(struct blk_desc *dev_desc, const struct disk_partition *part_info) { struct bootloader_control *abc = NULL; u32 crc32_le; diff --git a/include/android_ab.h b/include/android_ab.h index 0941eb6b9c..fcd3421f92 100644 --- a/include/android_ab.h +++ b/include/android_ab.h @@ -26,10 +26,10 @@ struct disk_partition; * registered before returning from this function so it isn't selected * indefinitely. * - * @param[in] dev_desc Place to store the device description pointer - * @param[in] part_info Place to store the partition information + * @param[in] dev_desc Device where we should read/write the boot_control struct. + * @param[in] part_info Partition on the 'dev_desc' to read/write. * @return The slot number (>= 0) on success, or a negative on error */ -int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info); +int ab_select_slot(struct blk_desc *dev_desc, const struct disk_partition *part_info); #endif /* __ANDROID_AB_H */ |