cregit-Linux how code gets into the kernel

Release 4.14 arch/sh/include/asm/gpio.h

/*
 *  include/asm-sh/gpio.h
 *
 * Generic GPIO API and pinmux table support for SuperH.
 *
 * Copyright (c) 2008 Magnus Damm
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 */
#ifndef __ASM_SH_GPIO_H

#define __ASM_SH_GPIO_H

#include <linux/kernel.h>
#include <linux/errno.h>

#if defined(CONFIG_CPU_SH3)
#include <cpu/gpio.h>
#endif


#define ARCH_NR_GPIOS 512
#include <asm-generic/gpio.h>

#ifdef CONFIG_GPIOLIB


static inline int gpio_get_value(unsigned gpio) { return __gpio_get_value(gpio); }

Contributors

PersonTokensPropCommitsCommitProp
Magnus Damm16100.00%1100.00%
Total16100.00%1100.00%


static inline void gpio_set_value(unsigned gpio, int value) { __gpio_set_value(gpio, value); }

Contributors

PersonTokensPropCommitsCommitProp
Magnus Damm20100.00%1100.00%
Total20100.00%1100.00%


static inline int gpio_cansleep(unsigned gpio) { return __gpio_cansleep(gpio); }

Contributors

PersonTokensPropCommitsCommitProp
Magnus Damm16100.00%1100.00%
Total16100.00%1100.00%


static inline int gpio_to_irq(unsigned gpio) { return __gpio_to_irq(gpio); }

Contributors

PersonTokensPropCommitsCommitProp
Magnus Damm1381.25%150.00%
Paul Mundt318.75%150.00%
Total16100.00%2100.00%


static inline int irq_to_gpio(unsigned int irq) { return -ENOSYS; }

Contributors

PersonTokensPropCommitsCommitProp
Magnus Damm1493.33%150.00%
Paul Mundt16.67%150.00%
Total15100.00%2100.00%

#endif /* CONFIG_GPIOLIB */ #endif /* __ASM_SH_GPIO_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Magnus Damm9274.80%225.00%
Markus Brunner1915.45%112.50%
Paul Mundt118.94%450.00%
Laurent Pinchart10.81%112.50%
Total123100.00%8100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.