[Optimus V Android Development] bigsupersquid:
picasticks posted a diff between sprint vd and vm kernels.

diff

original blog post

here's the bit of the diff with the keycodes

diff -urP vd/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c vm670/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c
--- vd/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c	2011-02-04 19:00:38.000000000 -0500
+++ vm670/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c	2011-04-12 06:00:32.000000000 -0400
@@ -23,7 +23,6 @@
#include <mach/board.h>
#include <mach/board_lge.h>
#include <mach/rpc_server_handset.h>
-// LGE_CHANGE [dojip.kim@lge.com] 2010-07-18, check the pcb revision
#include <mach/board_lge.h>

#include "board-thunderc.h"
@@ -44,12 +43,6 @@
},
};

-/* None qwerty keypad device
- * For Thunder CDMA Keypad [ youngchul.park@lge.com ]
- * gpio key pad device - from keypad-surf-ffa */
-/* LGE_CHANGE [LS670:FW:james.jang@lge.com] 2010-05-05, add keys.
- * CAM_SHOT, CAM_AF, VOICE
- */
#if defined(CONFIG_MACH_MSM7X27_THUNDERC_SPRINT)
static unsigned int keypad_row_gpios[] = {
32, 33, 34
@@ -64,16 +57,10 @@

#define KEYMAP_INDEX(row, col) ((row)*ARRAY_SIZE(keypad_col_gpios) + (col))

-/* LGE_CHANGE [LS670:FW:james.jang@lge.com] 2010-05-05, add keys.
- * CAM_SHOT, CAM_AF, VOICE
- */
-/* LGE_CHANGE [dojip.kim@lge.com] 2010--05-15, modified the keymap
- * BACK <-> HOME
- */
#if defined(CONFIG_MACH_MSM7X27_THUNDERC_SPRINT)
static const unsigned short keypad_keymap_thunder[9] = {
-	[KEYMAP_INDEX(0, 0)] = KEY_HOME,
-	[KEYMAP_INDEX(0, 1)] = KEY_MENU,
+ [KEYMAP_INDEX(0, 0)] = KEY_MENU,
+ [KEYMAP_INDEX(0, 1)] = KEY_HOME,
[KEYMAP_INDEX(0, 2)] = KEY_VOLUMEUP,
[KEYMAP_INDEX(1, 0)] = KEY_SEARCH,
[KEYMAP_INDEX(1, 1)] = KEY_BACK,

I cut it short of the whole section it patches but you can see which file and the changes made.

also, I believe this bit here covers ADB shell, but I could be wrong:

diff -urP vd/kernel/arch/arm/mach-msm/lge/board-thunderc.c vm670/kernel/arch/arm/mach-msm/lge/board-thunderc.c
--- vd/kernel/arch/arm/mach-msm/lge/board-thunderc.c	2011-02-04 19:00:38.000000000 -0500
+++ vm670/kernel/arch/arm/mach-msm/lge/board-thunderc.c	2011-04-12 06:00:32.000000000 -0400
@@ -136,18 +136,39 @@

{
.product_id = 0x6003,
-	.functions = 0x0F	/* 001111 Modem,diag,NMEA,Mass*/
+	.functions = 0x0F	/* 001111 Modem,diag,NMEA,Mass */
},

{
+	.product_id = 0x6004,
+	.functions = 0x1E	/* 011110 diag,NMEA,Mass,ADB */
+	},
+
+	{
+	.product_id = 0x6005,
+	.functions = 0x19	/* 011001 Modem,Mass,ADB */
+	},
+
+	{
+	.product_id = 0x6006,
+	.functions = 0x09	/* 001001 Modem,ADB */
+	},
+
+	{
.product_id = 0x618E,
.functions = 0x1F	/* 011111 Modem,diag,NMEA,Mass,ADB */
},
+
{
-	// LGE_CHANGE [dojip.kim@lge.com] 2010-08-16, LS670 UMS PID: 0x61CC
-	.product_id = 0x61CC,
+	.product_id = 0x61CE,
.functions = 0x08	/* 001000 Mass */
},
+
+	{
+	.product_id = 0x61A6,
+	.functions = 0x18	/* 011000 Mass,ADB */
+
+	},
};
#endif

@@ -157,9 +178,6 @@
.phy_info = (USB_PHY_INTEGRATED | USB_PHY_MODEL_65NM),
.vendor_id = 0x1004,
.product_name = "LG Android USB Device",
-	/* LGE_CHANGE [dojip.kim@lge.com] 2010-05-22, change the serial_number
-	* for LS670
-	*/
#ifdef CONFIG_MACH_MSM7X27_THUNDERC_SPRINT
.serial_number = "LGANDROIDLS670",
#else
@@ -194,7 +212,6 @@
},
};

-// LGE_CHANGE [dojip.kim@lge.com] 2010-09-28
static struct platform_device testmode_device = {
.name = "testmode",
.id = -1,
@@ -210,7 +227,6 @@
&msm_device_adspdec,
&lg_fw_diagcmd_device,
&lg_diag_cmd_device,
-	// LGE_CHANGE [dojip.kim@lge.com] 2010-09-28
&testmode_device,
};

@@ -231,11 +247,6 @@
void msm_serial_debug_init(unsigned int base, int irq,
struct device *clk_device, int signal_irq);

-// LGE_CHANGE [dojip.kim@lge.com] 2010-07-22, merged from thunderg
-/* decrease FB pmem size because thunderg uses hvga
- * qualcomm's original value depends on wvga resolution
- * 2010-04-18, cleaneye.kim@lge.com
- */
unsigned pmem_fb_size = 0x96000;

unsigned pmem_adsp_size = 0xAE4000;
@@ -314,7 +325,6 @@
#endif
}

-/* LGE_CHANGE [dojip.kim@lge.com] 2010-06-02 [LS670] */
#ifdef CONFIG_MACH_MSM7X27_THUNDERC_SPRINT
MACHINE_START(MSM7X27_THUNDERC, "THUNDER Sprint board (LGE LS670)")
#else

hopefully that's what you're needing, but I'm not positive.

edit: looks like they changed the second bit quite a bit in 2.6.35, it'll take more work to patch in the changes for the v in the product id codes now.