On Fri, Sep 23, 2022 at 12:30 PM Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > > On Fri, Sep 23, 2022 at 10:12:23AM +0200, Bartosz Golaszewski wrote: > > Since v5.19 the linux GPIO uAPI exposes a new request flag for making > > the hardware timestamp engine be the source of edge event timestamps. > > Add support for it to libgpiod. > > ... > > > /** > > * @brief Read the current event clock setting used for edge event > > * timestamps. > > - * @return Returns MONOTONIC or REALTIME. > > + * @return Returns MONOTONIC, REALTIME or HTE. > > Is it possible to refer to these with % so doxygen (or whatever you are using) > make the links out of them? > Yeah I couldn't get that to work with enums. If I can make it work, then I'll do a sweeping fix across the entire tree. > Because HTE is way too cryptic TLA (the same concern was also during submission > of that framework into the Linux kernel). > > > */ > > ... > > > { line::clock::MONOTONIC, "MONOTONIC" }, > > - { line::clock::REALTIME, "REALTIME" } > > + { line::clock::REALTIME, "REALTIME" }, > > + { line::clock::HTE, "HTE" } > > Similar here and hey, have you got the idea of the trailing comma (or poor C++ > forbids that?)? > I just made it consistent with the rest of the code. I will fix it treewide too, already have that on my TODO. Bart