++
++static struct omap_gpio_switch n8x0_gpio_switches[] __initdata = {
++ {
++ .name = "headphone",
++ .gpio = -1,
++ .debounce_rising = 200,
++ .debounce_falling = 200,
++ }, {
++ .name = "cam_act",
++ .gpio = -1,
++ .debounce_rising = 200,
++ .debounce_falling = 200,
++ }, {
++ .name = "cam_turn",
++ .gpio = -1,
++ .debounce_rising = 100,
++ .debounce_falling = 100,
++ }, {
++ .name = "slide",
++ .gpio = -1,
++ .debounce_rising = 200,
++ .debounce_falling = 200,
++ }, {
++ .name = "kb_lock",
++ .gpio = -1,
++ .debounce_rising = 200,
++ .debounce_falling = 200,
++ },
++};
++
++static void __init n8x0_gpio_switches_init(void)
++{
++ /* The switches are actually registered through ATAG mechanism.
++ * This just updates the parameters (thus .gpio is -1) */
++ omap_register_gpio_switches(n8x0_gpio_switches,
++ ARRAY_SIZE(n8x0_gpio_switches));
++}