ctrl: Introduce a macro for read-only attributes and use it

Certain attributes are read-only. Add a macro to make it more
easy to define those.
1 file changed