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

2019-04-18 Thread Miquel Raynal
Hi Masahiro, Masahiro Yamada 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

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

2019-04-09 Thread Boris Brezillon
On Tue, 9 Apr 2019 13:53:32 +0900 Masahiro Yamada wrote: > 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

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

2019-04-08 Thread Masahiro Yamada
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: