Using gpiod in a Kernel module

I’m looking for examples of using the new gpiod[1] interface in a kernel module.
I’d like to see Derek Molloy’s gpio_test[2] example converted from the /sys/class/gpio approach to the gpiod.

Who can point me to some examples?


p.s. I’m not looking for libgpiod examples, those I’ve already done[3].

[2] exploringBB/extras/kernel/gpio_test at version2 · derekmolloy/exploringBB · GitHub