From: Rafał Miłecki Date: Sat, 6 Jun 2015 21:16:23 +0000 (+0200) Subject: MIPS: BCM47xx: Add helper variable for storing NVRAM length X-Git-Tag: omap-for-v4.3/legacy-v2-signed~111^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94a0535baf4d78246f5e35c347d484baef8aeb2e;p=pandora-kernel.git MIPS: BCM47xx: Add helper variable for storing NVRAM length This simplifies code just a bit (also maybe makes it a bit more intuitive?) and will allow us to stop storing header. Right now we copy whole NVRAM including its header to the internal buffer. It is not needed to store a header as we don't access all these details like CRC, flags, etc. The next improvement that should follow is copying only the real contents. Signed-off-by: Rafał Miłecki Acked-by: Hauke Mehrtens Cc: linux-mips@linux-mips.org Cc: Arend van Spriel Cc: Hante Meuleman Patchwork: https://patchwork.linux-mips.org/patch/10535/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed