/sys/module/rotary_encoder is a directory
I went to /sys/module/rotary_encoder/drivers/platform:rotary-encoder which is a symlink to /sys/bus/platform/drivers/rotary-encoder
This directory contains the directory’s “bind”, “module”, “uevent” and “unbind”.
After some searching on Google I found out we probably have to bind a driver: Manual driver binding and unbinding [LWN.net]
I’ll keep on investigating now, sooner or later.