lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20061230150859.GA23170@flint.arm.linux.org.uk>
Date:	Sat, 30 Dec 2006 15:08:59 +0000
From:	Russell King <rmk+lkml@....linux.org.uk>
To:	pHilipp Zabel <philipp.zabel@...il.com>
Cc:	David Brownell <david-b@...bell.net>, Nicolas Pitre <nico@....org>,
	Andrew Morton <akpm@...l.org>,
	Linux Kernel list <linux-kernel@...r.kernel.org>,
	Andrew Victor <andrew@...people.com>,
	Bill Gatliff <bgat@...lgatliff.com>,
	Haavard Skinnemoen <hskinnemoen@...el.com>,
	Kevin Hilman <khilman@...sta.com>,
	Tony Lindgren <tony@...mide.com>
Subject: Re: [patch 2.6.20-rc1 5/6] SA1100 GPIO wrappers

On Sat, Dec 30, 2006 at 02:59:39PM +0100, pHilipp Zabel wrote:
> --- linux-2.6.orig/arch/arm/mach-sa1100/generic.c	2006-12-27
> 21:50:03.000000000 +0100
> +++ linux-2.6/arch/arm/mach-sa1100/generic.c	2006-12-30 
> 14:50:42.000000000 +0100
> @@ -138,6 +138,36 @@
> 	return v;
> }
> 
> +int sa1100_gpio_direction_input(unsigned gpio)
> +{
> +        unsigned long flags;
> +
> +	if (gpio > GPIO_MAX)

Obvious space/tab confusion.  Please use a consistent indentation style.

> +		return -EINVAL;
> +
> +        local_irq_save(flags);

Ditto.

> +	GPDR &= ~GPIO_GPIO(gpio);
> +        local_irq_restore(flags);

Ditto.

> +	return 0;
> +}
> +
> +EXPORT_SYMBOL(sa1100_gpio_direction_input);
> +
> +int sa1100_gpio_direction_output(unsigned gpio)
> +{
> +        unsigned long flags;

Ditto.

> +
> +	if (gpio > GPIO_MAX)
> +		return -EINVAL;
> +
> +        local_irq_save(flags);

Ditto.

> +	GPDR |= GPIO_GPIO(gpio);
> +        local_irq_restore(flags);

Ditto.


-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ