if (hs_switch < 0)
return -EINVAL;
- printk(KERN_INFO "headset_uart_switch: %d\n", hs_switch);
+ printk(KERN_INFO "headset_uart_switch: %d, value: %d\n", hs_switch, gpio_get_value(hs_switch));
- printk(KERN_INFO "value: %d\n", gpio_get_value(hs_switch));
if (!gpio_get_value(hs_switch))
return -ENODEV;
/* route kernel uart out headset jack */
gpio_direction_output(hs_switch, 0);
- printk(KERN_INFO "value: %d\n", gpio_get_value(hs_switch));
+ printk(KERN_INFO "headset_uart_switch: %d, value: %d\n", hs_switch, gpio_get_value(hs_switch));
//add_preferred_console("ttyS", 2, "115200");
return 0;