/** * read_curr_temp - reads the current temperature and stores in temp * @temp: holds the current temperature value after reading * * Can sleep */ static int read_curr_temp(struct thermal_zone_device *tzd, unsigned long *temp) { WARN_ON(tzd == NULL); return mid_read_temp(tzd, temp); }
/** * read_curr_temp - reads the current temperature and stores in temp * @temp: holds the current temperature value after reading * * Can sleep */ static int read_curr_temp(struct thermal_zone_device *tzd, unsigned long *temp) { return (tzd) ? mid_read_temp(tzd, temp) : -EINVAL; }