mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
7f317d3490
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Kees Cook <keescook@chromium.org> Link: http://lkml.kernel.org/r/20200726110117.16346-1-grandmaster@al2klimov.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
30 lines
854 B
C
30 lines
854 B
C
/*
|
|
* DaVinci GPIO Platform Related Defines
|
|
*
|
|
* Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation version 2.
|
|
*
|
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
* kind, whether express or implied; without even the implied warranty
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __DAVINCI_GPIO_PLATFORM_H
|
|
#define __DAVINCI_GPIO_PLATFORM_H
|
|
|
|
struct davinci_gpio_platform_data {
|
|
bool no_auto_base;
|
|
u32 base;
|
|
u32 ngpio;
|
|
u32 gpio_unbanked;
|
|
};
|
|
|
|
/* Convert GPIO signal to GPIO pin number */
|
|
#define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio))
|
|
|
|
#endif
|