/* applesmc_get_fan_count - get the number of fans. Callers must NOT hold applesmc_lock.  */
static int applesmc_get_fan_count(void)
/* applesmc_get_fan_count - get the number of fans. Callers must NOT hold applesmc_lock.  */
static int applesmc_get_fan_count(void)
{
	int ret;
	u8 buffer[1];
	mutex_lock(&applesmc_lock);
	ret = applesmc_read_key(FANS_COUNT, buffer, 1);
	mutex_unlock(&applesmc_lock);
	if (ret)
		return ret;
	else
		return buffer[0];
}