input_report_switch(&corgikbd_data->input, SW_0, ((sharpsl_hinge_state & CORGI_SCP_SWA) != 0)); input_report_switch(&corgikbd_data->input, SW_1, ((sharpsl_hinge_state & CORGI_SCP_SWB) != 0)); input_sync(&corgikbd_data->input); 
input_report_switch(corgikbd_data->input, SW_0, ((sharpsl_hinge_state & CORGI_SCP_SWA) != 0)); input_report_switch(corgikbd_data->input, SW_1, ((sharpsl_hinge_state & CORGI_SCP_SWB) != 0)); input_sync(corgikbd_data->input); 
static void corgikbd_hinge_timer(unsigned long data){	struct corgikbd *corgikbd_data = (struct corgikbd *) data;	unsigned long gprr;	unsigned long flags;	gprr = read_scoop_reg(&corgiscoop_device.dev, SCOOP_GPRR) & (CORGI_SCP_SWA | CORGI_SCP_SWB);	if (gprr != sharpsl_hinge_state) {		hinge_count = 0;		sharpsl_hinge_state = gprr;	} else if (hinge_count < HINGE_STABLE_COUNT) {		hinge_count++;		if (hinge_count >= HINGE_STABLE_COUNT) {			spin_lock_irqsave(&corgikbd_data->lock, flags);			input_report_switch(&corgikbd_data->input, SW_0, ((sharpsl_hinge_state & CORGI_SCP_SWA) != 0));			input_report_switch(&corgikbd_data->input, SW_1, ((sharpsl_hinge_state & CORGI_SCP_SWB) != 0));			input_sync(&corgikbd_data->input);			spin_unlock_irqrestore(&corgikbd_data->lock, flags);		}	}	mod_timer(&corgikbd_data->htimer, jiffies + HINGE_SCAN_INTERVAL);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3c42f0c3dde8feb59fc87df45cadb847d5511c0a/corgikbd.c/buggy/drivers/input/keyboard/corgikbd.c