commit | e18fcbba5a4e63b54116f40ae5f0323d5237d329 | [log] [tgz] |
---|---|---|
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | Thu Apr 30 20:33:38 2020 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Sep 02 13:48:13 2020 +0200 |
tree | 3113dfe0d1000cb323480acf19a3487ac979866b | |
parent | c8906fef79cefce3fe8c24cd0d01d164614d579f [diff] |
device: Const-ify all device driver instance pointers Now that device_api attribute is unmodified at runtime, as well as all the other attributes, it is possible to switch all device driver instance to be constant. A coccinelle rule is used for this: @r_const_dev_1 disable optional_qualifier @ @@ -struct device * +const struct device * @r_const_dev_2 disable optional_qualifier @ @@ -struct device * const +const struct device * Fixes #27399 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>