ANDROID: Fix ab_select_slot signature.

The part_info param should be const, and the descriptions should
indicate more precisely what the parameters do.

Bug: 141272741
Test: cuttlefish boots
Change-Id: I282385e04fb333d91b72455aa9e97a675dbeaf6e

Link: https://android-review.googlesource.com/c/platform/external/u-boot/+/1133067/2
Bug: https://baylibre.atlassian.net/browse/RITA-97
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
diff --git a/common/android_ab.c b/common/android_ab.c
index bdb1dc3..1449bf4 100644
--- a/common/android_ab.c
+++ b/common/android_ab.c
@@ -176,7 +176,7 @@
 	return 0;
 }
 
-int ab_select_slot(struct blk_desc *dev_desc, disk_partition_t *part_info)
+int ab_select_slot(struct blk_desc *dev_desc, const disk_partition_t *part_info)
 {
 	struct bootloader_control *abc = NULL;
 	u32 crc32_le;
diff --git a/include/android_ab.h b/include/android_ab.h
index 810906d..989d661 100644
--- a/include/android_ab.h
+++ b/include/android_ab.h
@@ -25,10 +25,10 @@
  * 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, disk_partition_t *part_info);
+int ab_select_slot(struct blk_desc *dev_desc, const disk_partition_t *part_info);
 
 #endif /* __ANDROID_AB_H */