sysfs_helpers: Use value i instead of j