diff options
author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2023-08-10 20:46:18 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-09-19 23:09:58 +0300 |
commit | cdb55bdb50eb1a458ad8f34550304296c39690f3 (patch) | |
tree | 43537550ae8caee78b87eeae241d2c96b293734e /drivers/i2c/busses/i2c-i801.c | |
parent | bcfaaa9711127eda1803f164ae4d790f38ff1122 (diff) | |
download | linux-cdb55bdb50eb1a458ad8f34550304296c39690f3.tar.xz |
i2c: dev: make i2c_dev_class a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the i2c_dev_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
0 files changed, 0 insertions, 0 deletions