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?

–Mark

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

[1] https://www.kernel.org/doc/Documentation/gpio/consumer.txt
[2] exploringBB/extras/kernel/gpio_test at version2 · derekmolloy/exploringBB · GitHub

[3] https://github.com/beagleboard/cloud9-examples/tree/v2020.08/BeagleBone/Black/gpiod