diff options
author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2023-08-10 22:27:11 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-11 21:41:33 +0200 |
commit | b5fa33795544be7cb791a6991cb4bb6a237967f4 (patch) | |
tree | 898cfcc8378caf088c2fd45e719d6a1c2a9fa756 /drivers/misc/qcom-coincell.c | |
parent | 60df28ac09d666f0b0e96fedf556d878715fa86f (diff) | |
download | linux-stable-b5fa33795544be7cb791a6991cb4bb6a237967f4.tar.gz linux-stable-b5fa33795544be7cb791a6991cb4bb6a237967f4.tar.bz2 linux-stable-b5fa33795544be7cb791a6991cb4bb6a237967f4.zip |
misc: genwqe: make class_genwqe a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the class_genwqe structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time. Update the 'class_genwqe' field of the
'genwqe_dev' struct correspondingly.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230810182711.22664-1-ivan.orlov0322@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/qcom-coincell.c')
0 files changed, 0 insertions, 0 deletions