mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-23 18:14:43 +02:00
code style cleanup
This commit is contained in:
parent
d93945480e
commit
9fb25aa404
@ -94,12 +94,12 @@ static struct mtd_partition qi_lb60_partitions_2gb[] = {
|
|||||||
},
|
},
|
||||||
{ .name = "NAND ROOTFS partition",
|
{ .name = "NAND ROOTFS partition",
|
||||||
.offset = 8 * 0x100000,
|
.offset = 8 * 0x100000,
|
||||||
.size = 256 * 0x100000,
|
.size = 256 * 0x100000,
|
||||||
},
|
},
|
||||||
{ .name = "NAND DATA partition",
|
{ .name = "NAND DATA partition",
|
||||||
.offset = 264 * 0x100000,
|
.offset = 264 * 0x100000,
|
||||||
.size = 1784 * 0x100000,
|
.size = 1784 * 0x100000,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void qi_lb60_nand_ident(struct platform_device *pdev,
|
static void qi_lb60_nand_ident(struct platform_device *pdev,
|
||||||
@ -124,11 +124,6 @@ static struct jz_nand_platform_data qi_lb60_nand_pdata = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Keyboard*/
|
/* Keyboard*/
|
||||||
|
|
||||||
/* #define KEEP_UART_ALIVE
|
|
||||||
* don't define this. the keyboard and keyboard both work
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define KEY_QI_VOLUP KEY_F11
|
#define KEY_QI_VOLUP KEY_F11
|
||||||
#define KEY_QI_VOLDOWN KEY_F12
|
#define KEY_QI_VOLDOWN KEY_F12
|
||||||
#define KEY_QI_QI KEY_F13
|
#define KEY_QI_QI KEY_F13
|
||||||
@ -193,12 +188,9 @@ static const uint32_t qi_lb60_keymap[] = {
|
|||||||
KEY(6, 5, KEY_QI_VOLDOWN), /* S55 */
|
KEY(6, 5, KEY_QI_VOLDOWN), /* S55 */
|
||||||
KEY(6, 6, KEY_DOWN), /* S56 */
|
KEY(6, 6, KEY_DOWN), /* S56 */
|
||||||
KEY(6, 7, KEY_RIGHT), /* S57 */
|
KEY(6, 7, KEY_RIGHT), /* S57 */
|
||||||
|
|
||||||
#ifndef KEEP_UART_ALIVE
|
|
||||||
KEY(7, 0, KEY_LEFTSHIFT), /* S58 */
|
KEY(7, 0, KEY_LEFTSHIFT), /* S58 */
|
||||||
KEY(7, 1, KEY_LEFTALT), /* S59 */
|
KEY(7, 1, KEY_LEFTALT), /* S59 */
|
||||||
KEY(7, 2, KEY_QI_FN), /* S60 */
|
KEY(7, 2, KEY_QI_FN), /* S60 */
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct matrix_keymap_data qi_lb60_keymap_data = {
|
static const struct matrix_keymap_data qi_lb60_keymap_data = {
|
||||||
@ -211,10 +203,7 @@ static const unsigned int qi_lb60_keypad_cols[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned int qi_lb60_keypad_rows[] = {
|
static const unsigned int qi_lb60_keypad_rows[] = {
|
||||||
114, 115, 116, 117, 118, 119, 120,
|
114, 115, 116, 117, 118, 119, 120, 122,
|
||||||
#ifndef KEEP_UART_ALIVE
|
|
||||||
122,
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct matrix_keypad_platform_data qi_lb60_pdata = {
|
static struct matrix_keypad_platform_data qi_lb60_pdata = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user