#endif /* CONFIG_PMAC_PBOOK */ 
#endif 
proc_write_options(struct file *file, const char __user *buffer,			unsigned long count, void *data){	char tmp[33];	char *label, *val;	unsigned long fcount = count;		if (!count)		return -EINVAL;	if (count > 32)		count = 32;	if (copy_from_user(tmp, buffer, count))		return -EFAULT;	tmp[count] = 0;	label = tmp;	while(*label == ' ')		label++;	val = label;	while(*val && (*val != '=')) {		if (*val == ' ')			*val = 0;		val++;	}	if ((*val) == 0)		return -EINVAL;	*(val++) = 0;	while(*val == ' ')		val++;#ifdef CONFIG_PMAC_PBOOK	if (pmu_kind == PMU_KEYLARGO_BASED &&	    pmac_call_feature(PMAC_FTR_SLEEP_STATE,NULL,0,-1) >= 0)		if (!strcmp(label, "lid_wakeup"))			option_lid_wakeup = ((*val) == '1');#endif /* CONFIG_PMAC_PBOOK */	if (pmu_kind == PMU_KEYLARGO_BASED && !strcmp(label, "server_mode")) {		int new_value;		new_value = ((*val) == '1');		if (new_value != option_server_mode)			pmu_set_server_mode(new_value);	}	return fcount;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8c8709334cec803368a432a33e0f2e116d48fe07/via-pmu.c/buggy/drivers/macintosh/via-pmu.c