ssize_t gpu_governor_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { pr_info("SRUK ----------- %s -- %d", __FUNCTION__, __LINE__); if (open_file_and_write_buffer(GPU_GOVERNOR, buf, strlen(buf)) == 0) { pr_info("SRUK ----------- %s -- %d", __FUNCTION__, __LINE__); return 0; } pr_info("SRUK ----------- %s -- %d", __FUNCTION__, __LINE__); /* Return success status. */ return count; }