mtd: rawnand: allocate model parameter dynamically
Thanks to the migration of all drivers to use nand_scan() and the related nand_controller_ops, we can now allocate data during the detection phase. Let's do it first for the NAND model parameter which is allocated in nand_detect(). Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
This commit is contained in:
@@ -476,7 +476,7 @@ struct onfi_params {
|
||||
*/
|
||||
struct nand_parameters {
|
||||
/* Generic parameters */
|
||||
char model[100];
|
||||
const char *model;
|
||||
bool supports_set_get_features;
|
||||
DECLARE_BITMAP(set_feature_list, ONFI_FEATURE_NUMBER);
|
||||
DECLARE_BITMAP(get_feature_list, ONFI_FEATURE_NUMBER);
|
||||
|
Reference in New Issue
Block a user