[U-Boot] [PATCH v2 3/4] mtd: nand: mxs: Add comment for calculating ECC strength
Heiko Schocher
hs at denx.de
Tue Apr 14 10:02:05 CEST 2015
Hello Jörg,
Am 14.04.2015 08:29, schrieb Jörg Krause:
> Hello Heiko,
>
> On Di, 2015-04-14 at 08:12 +0200, Heiko Schocher wrote:
>> Hello Jörg,
>>
>> Am 13.04.2015 22:17, schrieb Jörg Krause:
>>> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
>>> ---
>>> drivers/mtd/nand/mxs_nand.c | 7 +++++++
>>> 1 file changed, 7 insertions(+)
>>
>> nitpick only ...
>
> I'm unsure what this comment means translated to German. Something
> like small changes only?
Yes, something like "pingelig"
>>> diff --git a/drivers/mtd/nand/mxs_nand.c
>>> b/drivers/mtd/nand/mxs_nand.c
>>> index 912fed8..76e47ab 100644
>>> --- a/drivers/mtd/nand/mxs_nand.c
>>> +++ b/drivers/mtd/nand/mxs_nand.c
>>> @@ -148,6 +148,13 @@ static inline uint32_t
>>> mxs_nand_get_ecc_strength(uint32_t page_data_size,
>>> {
>>> int ecc_strength;
>>>
>>> + /* Determine the ECC layout with the formula:
>>
>> wrong comment style ... please fix also in patch 4/4... thanks.
>
> Checkpatch did not complain and I did not know there is a coding style
> for comments. Should it be:
> /*
> * Determine the ECC layout...
Yes.
See: linux:/Documentation/CodingStyle search for
"The preferred style for long (multi-line) comments is"
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list