[PATCH v2 06/12] coresight: Move all sysfs code to sysfs file