Together with Raffael Raiél I’ve been contributing to refactoring IIO tree code by replacing old style mutex lock and unlock with the newer guard() macro.
We started by looking a suitable file for the improvement. Using ripgrep we found that the file drivers/iio/light/vcnl4000.c had several uses of mutex lock and unlock. Moreover, it was a good fit for us since we were already used to dealing and compiling the iio tree.
The modification work was swift. We had no issues in making the refactoring, and sent our patch for correction on 16th April. After some back and forth with style details we got a LGTM from Andy Shevchenko on 20th April. However, before merging, Jonathan Cameron noted that we could expand our patch to also deal with issues on other code. That’s where we are now.
Until now the process is going fine. It’s weird to contribute through mail lists instead of a tool like Github, but kw and git make things a little easier. Also, all the culture around specifics when sending patches is very new to me.