devm_ioremap_resource() doesn't change the passed struct resource,
so it can be a const pointer.
Now, calls sites w/ fixed resources can declare them static.
(in some cases possibly even __initconst)
Signed-off-by: Enrico Weigelt
---
include/linux/device.h | 3 ++-
lib/devres.c | 3 ++
devm_ioremap_resource() doesn't change the passed struct resource,
so it can be a const pointer.
Now, calls sites w/ fixed resources can declare them static.
(in some cases possibly even __initconst)
Signed-off-by: Enrico Weigelt
---
include/linux/device.h | 3 ++-
lib/devres.c | 3 ++
devm_ioremap_resource() doesn't change the passed struct resource,
so it can be a const pointer.
Now, calls sites w/ fixed resources can declare them static.
(in some cases possibly even __initconst)
Signed-off-by: Enrico Weigelt, metux IT consult
---
include/linux/device.h | 3 ++-
lib/devres.
3 matches
Mail list logo