//struct thermal_zone_device *tz = to_thermal_zone(dev);
struct thermal_zone_device *tz = container_of(dev, struct thermal_zone_device, device);
int result;
- unsigned long logtime;
- if (kstrtoul(buf, 10, &logtime))
+ unsigned long logtime;
+ if (kstrtoul(buf, 10, &logtime))
return -EINVAL;
- result = sprd_sys_set_logtime(tz, logtime);
+ result = sprd_sys_set_logtime(tz, logtime);
if (result)
return result;
{
struct sprd_thermal_zone *pzone;
int temp;
- unsigned long volt = 0;
pzone = container_of(work, struct sprd_thermal_zone, thm_logtime_work.work);
temp = pzone->ops->read_temp(pzone);
printk(" thm sensor id:%d, logtime:%ld, temp:%d\n", pzone->sensor_id,pzone->logtime,temp);