diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-02-07 10:49:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-08 09:09:59 +0100 |
commit | 240bf4f87471f4d15e97731fbe120f92ddd4ad16 (patch) | |
tree | 52cdc646e871ddba707cf782fb907e27677dded2 /include | |
parent | e4a7f8e21cc55e633ca7997819d8ebdb94d305af (diff) | |
download | barebox-240bf4f87471f4d15e97731fbe120f92ddd4ad16.tar.gz barebox-240bf4f87471f4d15e97731fbe120f92ddd4ad16.tar.xz |
cdev: rename partuuid to uuid
Partitions are not the only devices that can have UUIDs. Change the name to
something more generic to prepare for other users.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Link: https://lore.barebox.org/20220124100458.2924679-2-m.olbrich@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.barebox.org/20220207094953.949868-1-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/driver.h b/include/driver.h index 1215a2d57a..62a1782847 100644 --- a/include/driver.h +++ b/include/driver.h @@ -451,7 +451,7 @@ struct cdev_operations { int (*truncate)(struct cdev*, size_t size); }; -#define MAX_PARTUUID_STR sizeof("00112233-4455-6677-8899-AABBCCDDEEFF") +#define MAX_UUID_STR sizeof("00112233-4455-6677-8899-AABBCCDDEEFF") struct cdev { const struct cdev_operations *ops; @@ -464,7 +464,7 @@ struct cdev { char *partname; /* the partition name, usually the above without the * device part, i.e. name = "nand0.barebox" -> partname = "barebox" */ - char partuuid[MAX_PARTUUID_STR]; + char uuid[MAX_UUID_STR]; loff_t offset; loff_t size; unsigned int flags; |