Skip to content
Commit eb520344 authored by Ricardo B. Marliere's avatar Ricardo B. Marliere Committed by Wolfram Sang
Browse files

i2c: constify the struct device_type usage



Since commit aed65af1 ("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move the
i2c_adapter_type and i2c_client_type variables to be constant structures as
well, placing it into read-only memory which can not be modified at
runtime.

Signed-off-by: default avatarRicardo B. Marliere <ricardo@marliere.net>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
parent b401b621
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