diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-05 22:35:38 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-07-12 20:45:09 +0300 |
commit | 299af26eb46374295a3289be990e536b75c9376a (patch) | |
tree | e253939a33617c37bbe7f9ef742cca1c6160a199 /scripts/generate_rust_analyzer.py | |
parent | 745d9f4a31defec731119ee8aad8ba9f2536dd9a (diff) | |
download | linux-299af26eb46374295a3289be990e536b75c9376a.tar.xz |
mtd: ubi: make ubi_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the ubi_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions