From a7f86c27748a57fe60b7892ebc887993bd1223c9 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Thu, 12 Apr 2012 14:17:58 -0700 Subject: [PATCH] stm32l: remove unnecessary inner loop from check_keys_changed() This inner loop was used to detect single changes for use by the i8042 keyboard interface code used on LM4. Since we only send the entire matrix state, we do not need this particular bit of code. Signed-off-by: David Hendricks BUG=none TEST=tested on daisy Change-Id: I4d36a7db77d20ace29f534c9e12f7ed9558c953d --- chip/stm32l/keyboard_scan.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/chip/stm32l/keyboard_scan.c b/chip/stm32l/keyboard_scan.c index b61f970983..dc6371ce92 100644 --- a/chip/stm32l/keyboard_scan.c +++ b/chip/stm32l/keyboard_scan.c @@ -388,14 +388,6 @@ static int check_keys_changed(void) /* Check for changes */ if (r != raw_state[c]) { - int i; - for (i = 0; i < 8; ++i) { - uint8_t prev = (raw_state[c] >> i) & 1; - uint8_t now = (r >> i) & 1; - if (prev != now) - /* TODO: implement this */ - ; //keyboard_state_changed(i, c, now); - } raw_state[c] = r; change = 1; }