[PATCH v2 1/2] of_mtd: Add helpers to get ECC strength and ECC step size

Grant Likely grant.likely at secretlab.ca
Mon Feb 24 14:08:15 EST 2014


On Mon, Feb 24, 2014 at 4:13 PM, Boris BREZILLON
<b.brezillon.dev at gmail.com> 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 <ezequiel.garcia at free-electrons.com>
>> ---
>> 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 <linux/of.h>
>>   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"

g.



More information about the linux-mtd mailing list