[PATCH] mtd: rawnand: constify elements of NAND_OP_PARSER(_PATTERN)

Miquel Raynal miquel.raynal at bootlin.com
Thu Apr 18 09:21:59 PDT 2019


Hi Masahiro,

Masahiro Yamada <yamada.masahiro at socionext.com> wrote on Tue,  9 Apr
2019 13:53:32 +0900:

> Currently, drivers are able to constify a nand_op_parser array,
> but not nand_op_parser_pattern and nand_op_parser_pattern_elem
> since they are instantiated by using the NAND_OP_PARSER(_PATTERN).
> 
> Add 'const' to them in order to move more driver data from .data to
> .rodata section.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
> 

Applied to 
https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git 
branch nand/next.

Thanks,
Miquèl



More information about the linux-mtd mailing list