From 0528979fa7ab7853faaf2ecf34b7721dd4c0b383 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2020 11:39:57 -0600 Subject: part: Drop disk_partition_t typedef We should not be using typedefs and these make it harder to use forward declarations (to reduce header file inclusions). Drop the typedef. Signed-off-by: Simon Glass --- include/android_ab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/android_ab.h') diff --git a/include/android_ab.h b/include/android_ab.h index 810906d22b3..3f4e69be9ef 100644 --- a/include/android_ab.h +++ b/include/android_ab.h @@ -29,6 +29,6 @@ * @param[in] part_info Place to store the partition information * @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, struct disk_partition *part_info); #endif /* __ANDROID_AB_H */ -- cgit v1.2.3 From e6f6f9e64882ddf242437c73fdd9ff06a8eb7c21 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2020 11:39:58 -0600 Subject: common: Drop part.h from common header Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- include/android_ab.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/android_ab.h') diff --git a/include/android_ab.h b/include/android_ab.h index 3f4e69be9ef..0941eb6b9cc 100644 --- a/include/android_ab.h +++ b/include/android_ab.h @@ -6,7 +6,8 @@ #ifndef __ANDROID_AB_H #define __ANDROID_AB_H -#include +struct blk_desc; +struct disk_partition; /* Android standard boot slot names are 'a', 'b', 'c', ... */ #define BOOT_SLOT_NAME(slot_num) ('a' + (slot_num)) -- cgit v1.2.3