changes from a static number of devices to a dynamic number of devices
enable dynamic number of triggers based on the supported triggers on the device
change modulename to lowercase
remove -std=c99 syntax