[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-omap
Subject: Re: [PATCH 11/12] ARM: OMAP1: Palm Tungsten E board clean-up
From: Russell King - ARM Linux <linux () arm ! linux ! org ! uk>
Date: 2007-12-31 14:35:19
Message-ID: 20071231143519.GE31777 () flint ! arm ! linux ! org ! uk
[Download RAW message or body]
On Mon, Dec 17, 2007 at 09:56:57PM -0800, Tony Lindgren wrote:
> @@ -339,74 +341,33 @@ static struct spi_board_info palmte_spi_info[] __initdata = {
> },
> };
>
> -/* Periodically check for changes on important input pins */
> -struct timer_list palmte_pin_timer;
> -int prev_power, prev_headphones;
> -
> -static void palmte_pin_handler(unsigned long data) {
> - int power, headphones;
> -
> - power = !omap_get_gpio_datain(PALMTE_DC_GPIO);
> - headphones = omap_get_gpio_datain(PALMTE_HEADPHONES_GPIO);
> -
> - if (power && !prev_power)
> - printk(KERN_INFO "PM: cable connected\n");
> - else if (!power && prev_power)
> - printk(KERN_INFO "PM: cable disconnected\n");
> -
> - if (headphones && !prev_headphones) {
> +static void palmte_headphones_detect(void *data, int state) {
That should be:
static void palmte_headphones_detect(void *data, int state)
{
-
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic