staging: gasket: fix check_and_invoke_callback log param
[linux-2.6/btrfs-unstable.git] / include / linux / gpio-pxa.h
blob1e1fa0160480d85756b25e99ae554d86d85a3a8c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __GPIO_PXA_H
3 #define __GPIO_PXA_H
5 #define GPIO_bit(x) (1 << ((x) & 0x1f))
7 #define gpio_to_bank(gpio) ((gpio) >> 5)
9 /* NOTE: some PXAs have fewer on-chip GPIOs (like PXA255, with 85).
10 * Those cases currently cause holes in the GPIO number space, the
11 * actual number of the last GPIO is recorded by 'pxa_last_gpio'.
13 extern int pxa_last_gpio;
15 extern int pxa_irq_to_gpio(int irq);
17 struct pxa_gpio_platform_data {
18 int irq_base;
19 int (*gpio_set_wake)(unsigned int gpio, unsigned int on);
22 #endif /* __GPIO_PXA_H */