30.07.2020 03:27, Sowjanya Komatineni ÐÐÑÐÑ:
...
I meant that failing s_stream might be unnecessary.Secondly, perhaps a failed calibration isn't a very critical error?Using dev_err to report calibration failure. Are you suggesting to use
Hence just printing a warning message should be enough.
dev_warn instead of dev_err?
The dev_warn should be more appropriate for a non-critical errors.
I meant to change all the code like this:Also please specify what ON/OFF code paths you are referring to when youCould you please make a patch that factors all ON/OFF code paths into awhat do you mean by partial changes in patches?
separate functions? It's a bit difficult to follow the combined code,
especially partial changes in the patches. Thanks in advance!
Can you please be more clear?
say to move into separate functions?
set(on) {
if (on) {
...
return;
}
if (!on)
...
return;
}
to somewhat like this:
set(on) {
if (on)
ret = enable();
else
ret = disable();
return ret;
}