if (test_bit (SND_BELL, lk->dev.snd)) 
if (test_bit (SND_BELL, lk->dev->snd)) 
lkkbd_reinit (void *data){	struct lkkbd *lk = data;	int division;	unsigned char leds_on = 0;	unsigned char leds_off = 0;	/* Ask for ID */	lk->serio->write (lk->serio, LK_CMD_REQUEST_ID);	/* Reset parameters */	lk->serio->write (lk->serio, LK_CMD_SET_DEFAULTS);	/* Set LEDs */	CHECK_LED (LED_CAPSL, LK_LED_SHIFTLOCK);	CHECK_LED (LED_COMPOSE, LK_LED_COMPOSE);	CHECK_LED (LED_SCROLLL, LK_LED_SCROLLLOCK);	CHECK_LED (LED_SLEEP, LK_LED_WAIT);	if (leds_on != 0) {		lk->serio->write (lk->serio, LK_CMD_LED_ON);		lk->serio->write (lk->serio, leds_on);	}	if (leds_off != 0) {		lk->serio->write (lk->serio, LK_CMD_LED_OFF);		lk->serio->write (lk->serio, leds_off);	}	/*	 * Try to activate extended LK401 mode. This command will	 * only work with a LK401 keyboard and grants access to	 * LAlt, RAlt, RCompose and RShift.	 */	lk->serio->write (lk->serio, LK_CMD_ENABLE_LK401);	/* Set all keys to UPDOWN mode */	for (division = 1; division <= 14; division++)		lk->serio->write (lk->serio, LK_CMD_SET_MODE (LK_MODE_UPDOWN,					division));	/* Enable bell and set volume */	lk->serio->write (lk->serio, LK_CMD_ENABLE_BELL);	lk->serio->write (lk->serio, volume_to_hw (lk->bell_volume));	/* Enable/disable keyclick (and possibly set volume) */	if (test_bit (SND_CLICK, lk->dev.snd)) {		lk->serio->write (lk->serio, LK_CMD_ENABLE_KEYCLICK);		lk->serio->write (lk->serio, volume_to_hw (lk->keyclick_volume));		lk->serio->write (lk->serio, LK_CMD_ENABLE_CTRCLICK);		lk->serio->write (lk->serio, volume_to_hw (lk->ctrlclick_volume));	} else {		lk->serio->write (lk->serio, LK_CMD_DISABLE_KEYCLICK);		lk->serio->write (lk->serio, LK_CMD_DISABLE_CTRCLICK);	}	/* Sound the bell if needed */	if (test_bit (SND_BELL, lk->dev.snd))		lk->serio->write (lk->serio, LK_CMD_SOUND_BELL);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3c42f0c3dde8feb59fc87df45cadb847d5511c0a/lkkbd.c/clean/drivers/input/keyboard/lkkbd.c