Skip to content
Commit cdb55bdb authored by Ivan Orlov's avatar Ivan Orlov Committed by Wolfram Sang
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent bcfaaa97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment