From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from top.free-electrons.com ([176.31.233.9] helo=mail.free-electrons.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WI2Dn-0002Od-Qg for linux-mtd@lists.infradead.org; Mon, 24 Feb 2014 20:33:52 +0000 Date: Mon, 24 Feb 2014 17:33:26 -0300 From: Ezequiel Garcia To: Grant Likely Subject: Re: [PATCH v2 1/2] of_mtd: Add helpers to get ECC strength and ECC step size Message-ID: <20140224203325.GA28620@localhost> References: <1392749474-12936-1-git-send-email-ezequiel.garcia@free-electrons.com> <1392749474-12936-2-git-send-email-ezequiel.garcia@free-electrons.com> <530B6FA9.5050902@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: "linux-mtd@lists.infradead.org" , Brian Norris , Boris BREZILLON List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Feb 24, 2014 at 07:08:15PM +0000, Grant Likely wrote: > On Mon, Feb 24, 2014 at 4:13 PM, Boris BREZILLON > wrote: > > On 18/02/2014 19:51, Ezequiel Garcia wrote: > >> > >> This commit adds simple helpers to obtain the devicetree properties > >> that specify the ECC strength and ECC step size to use on a given > >> NAND controller. > >> > >> Signed-off-by: Ezequiel Garcia > >> --- > >> diff --git a/include/linux/of_mtd.h b/include/linux/of_mtd.h > >> index cb32d9c..c078f99 100644 > >> --- a/include/linux/of_mtd.h > >> +++ b/include/linux/of_mtd.h > >> @@ -13,6 +13,8 @@ > >> #include > >> int of_get_nand_ecc_mode(struct device_node *np); > >> +int of_get_nand_ecc_step_size(struct device_node *np) > >> +int of_get_nand_ecc_strength(struct device_node *np) > > > > > > You forgot the semicolon. > > Repeat after me: "I shall not post patches that I have not compiled" > Certainly: "I shall not post patches that I have not compiled". Hope this helps me learn the lesson. -- Ezequiel GarcĂ­a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com