Pass pointer to sysfs_read

change return type to int instead of char pointer. pass char pointer as parameter