input_report_switch(&spitzkbd_data->input, SW_0, ((GPLR(SPITZ_GPIO_SWA) & GPIO_bit(SPITZ_GPIO_SWA)) != 0)); input_report_switch(&spitzkbd_data->input, SW_1, ((GPLR(SPITZ_GPIO_SWB) & GPIO_bit(SPITZ_GPIO_SWB)) != 0)); input_sync(&spitzkbd_data->input); 
input_report_switch(spitzkbd_data->input, SW_0, ((GPLR(SPITZ_GPIO_SWA) & GPIO_bit(SPITZ_GPIO_SWA)) != 0)); input_report_switch(spitzkbd_data->input, SW_1, ((GPLR(SPITZ_GPIO_SWB) & GPIO_bit(SPITZ_GPIO_SWB)) != 0)); input_sync(spitzkbd_data->input); 
static void spitzkbd_hinge_timer(unsigned long data){	struct spitzkbd *spitzkbd_data = (struct spitzkbd *) data;	unsigned long state;	unsigned long flags;	state = GPLR(SPITZ_GPIO_SWA) & (GPIO_bit(SPITZ_GPIO_SWA)|GPIO_bit(SPITZ_GPIO_SWB));	if (state != sharpsl_hinge_state) {		hinge_count = 0;		sharpsl_hinge_state = state;	} else if (hinge_count < HINGE_STABLE_COUNT) {		hinge_count++;	}	if (hinge_count >= HINGE_STABLE_COUNT) {		spin_lock_irqsave(&spitzkbd_data->lock, flags);		input_report_switch(&spitzkbd_data->input, SW_0, ((GPLR(SPITZ_GPIO_SWA) & GPIO_bit(SPITZ_GPIO_SWA)) != 0));		input_report_switch(&spitzkbd_data->input, SW_1, ((GPLR(SPITZ_GPIO_SWB) & GPIO_bit(SPITZ_GPIO_SWB)) != 0));		input_sync(&spitzkbd_data->input);		spin_unlock_irqrestore(&spitzkbd_data->lock, flags);	} else {		mod_timer(&spitzkbd_data->htimer, jiffies + msecs_to_jiffies(HINGE_SCAN_INTERVAL));	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3c42f0c3dde8feb59fc87df45cadb847d5511c0a/spitzkbd.c/clean/drivers/input/keyboard/spitzkbd.c