On 4/1/22 12:56, Avri Altman wrote:
Declare the quirks array and also its 'model' member const to make it explicit
that these are not modified.
Sometimes it's useful to be able to add a quirk as part of e.g. a debug session in the OEM premises.
And not always we are able to recompile the kernel.
Since we have a debugfs now, how about adding this capability, instead of blocking it?
Hmm ... does declaring data const prevent from modifying that data from
inside a kernel debugger? Don't kernel debuggers allow to cast away
constness?
Thanks,
Bart.