From 38646182c4edae5df911f78aa75324550dac0596 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Thu, 27 Oct 2011 21:56:53 -0700 Subject: [PATCH] Add n_options to struct device --- lib/pb-protocol/pb-protocol.c | 2 ++ lib/pb-protocol/pb-protocol.h | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/pb-protocol/pb-protocol.c b/lib/pb-protocol/pb-protocol.c index 6f278c8..a85b8a9 100644 --- a/lib/pb-protocol/pb-protocol.c +++ b/lib/pb-protocol/pb-protocol.c @@ -311,6 +311,8 @@ struct device *pb_protocol_deserialise_device(void *ctx, n_options = __be32_to_cpu(*(uint32_t *)pos); pos += sizeof(uint32_t); + dev->n_options = n_options; + list_init(&dev->boot_options); for (i = 0; i < n_options; i++) { diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h index 888e9b9..b2d57d2 100644 --- a/lib/pb-protocol/pb-protocol.h +++ b/lib/pb-protocol/pb-protocol.h @@ -28,6 +28,7 @@ struct device { struct list boot_options; + int n_options; void *ui_info; }; -- 2.39.2