From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 15 Feb 2016 17:37:05 -0500 Subject: [U-Boot] [PATCH 14/30] dm: part: Convert partition API use to linker lists In-Reply-To: <1455502619-16093-15-git-send-email-sjg@chromium.org> References: <1455502619-16093-1-git-send-email-sjg@chromium.org> <1455502619-16093-15-git-send-email-sjg@chromium.org> Message-ID: <20160215223705.GI23166@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Feb 14, 2016 at 07:16:43PM -0700, Simon Glass wrote: > We can use linker lists instead of explicitly declaring each function. > This makes the code shorter by avoiding switch() statements and lots of > header file declarations. > > While this does clean up the code it introduces a few code issues with SPL. > SPL never needs to print partition information since this all happens from > commands. SPL mostly doesn't need to obtain information about a partition > either, except in a few cases. Add these cases so that the code will be > dropped from each partition driver when not needed. This avoids code bloat. > > I think this is still a win, since it is not a bad thing to be explicit > about which features are used in SPL. But others may like to weigh in. > > Signed-off-by: Simon Glass Since there's a question here: Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: