result = acpi_ec_write(ec, (u8) address, (u8) *value); 
result = acpi_ec_write(ec, (u8) address, (u8) temp); 
acpi_ec_space_handler (	u32			function,	acpi_physical_address	address,	u32			bit_width,	acpi_integer		*value,	void			*handler_context,	void			*region_context){	int			result = 0;	struct acpi_ec		*ec = NULL;	u32			temp = 0;	acpi_integer		f_v = 0;	int 			i = 0;	ACPI_FUNCTION_TRACE("acpi_ec_space_handler");	if ((address > 0xFF) || !value || !handler_context)		return_VALUE(AE_BAD_PARAMETER);	if(bit_width != 8) {		printk(KERN_WARNING PREFIX "acpi_ec_space_handler: bit_width should be 8\n");		if (acpi_strict)			return_VALUE(AE_BAD_PARAMETER);	}	ec = (struct acpi_ec *) handler_context;next_byte:	switch (function) {	case ACPI_READ:		result = acpi_ec_read(ec, (u8) address, &temp);		*value = (acpi_integer) temp;		break;	case ACPI_WRITE:		result = acpi_ec_write(ec, (u8) address, (u8) *value);		break;	default:		result = -EINVAL;		goto out;		break;	}	bit_width -= 8;	if(bit_width){		if(function == ACPI_READ)			f_v |= (acpi_integer) (*value) << 8*i;		if(function == ACPI_WRITE)			(*value) >>=8; 		i++;		goto next_byte;	}	if(function == ACPI_READ){		f_v |= (acpi_integer) (*value) << 8*i;		*value = f_v;	}		out:	switch (result) {	case -EINVAL:		return_VALUE(AE_BAD_PARAMETER);		break;	case -ENODEV:		return_VALUE(AE_NOT_FOUND);		break;	case -ETIME:		return_VALUE(AE_TIME);		break;	default:		return_VALUE(AE_OK);	}	}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/fa9cd547e097df4966b8bd5c94aeed953e32b14d/ec.c/buggy/drivers/acpi/ec.c