From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sat, 8 Oct 2016 12:23:43 +0800 Subject: [U-Boot] [PATCH v2 04/12] list: Add list_last_entry() to find the last entry In-Reply-To: <1475721740-15124-5-git-send-email-sjg@chromium.org> References: <1475721740-15124-1-git-send-email-sjg@chromium.org> <1475721740-15124-5-git-send-email-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Oct 6, 2016 at 10:42 AM, Simon Glass wrote: > We have list_first_entry() but in some cases it is useful to find the last > item added to the list. Add a macro for this. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > include/linux/list.h | 11 +++++++++++ > 1 file changed, 11 insertions(+) > applied to u-boot-x86, thanks!