Changeset 11573


Ignore:
Timestamp:
2008-06-24T21:24:22+02:00 (8 years ago)
Author:
blogic
Message:

cleanup ifxmips headers

Location:
trunk/target/linux/ifxmips/files/include/asm-mips
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ifxmips/files/include/asm-mips/ifxmips/ifxmips_wdt.h

    r9831 r11573  
    1616 *   Copyright (C) 2005 infineon 
    1717 *   Copyright (C) 2007 John Crispin <blogic@openwrt.org>  
    18  * 
    1918 */ 
    2019 
  • trunk/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h

    r11558 r11573  
    11/* 
    2  *   include/asm-mips/mach-ifxmips/gpio.h  
    3  * 
    42 *   This program is free software; you can redistribute it and/or modify 
    53 *   it under the terms of the GNU General Public License as published by 
     
    1715 * 
    1816 *   Copyright (C) 2007 John Crispin <blogic@openwrt.org>  
    19  * 
    2017 */ 
    21  
    2218 
    2319#ifndef _IFXMIPS_GPIO_H_ 
     
    2723#include <asm/ifxmips/ifxmips_gpio.h> 
    2824 
    29 static inline int gpio_direction_input(unsigned gpio) { 
     25static inline int 
     26gpio_direction_input(unsigned gpio) 
     27{ 
    3028        ifxmips_port_set_dir_in(0, gpio); 
    3129        return 0; 
    3230} 
    3331 
    34 static inline int gpio_direction_output(unsigned gpio, int value) { 
     32static inline int 
     33gpio_direction_output(unsigned gpio, int value) 
     34{ 
    3535        ifxmips_port_set_dir_out(0, gpio); 
    3636        return 0; 
    3737} 
    3838 
    39 static inline int gpio_get_value(unsigned gpio) { 
     39static inline int 
     40gpio_get_value(unsigned gpio) 
     41{ 
    4042        ifxmips_port_get_input(0, gpio); 
    4143        return 0; 
    4244} 
    4345 
    44 static inline void gpio_set_value(unsigned gpio, int value) { 
     46static inline void 
     47gpio_set_value(unsigned gpio, int value) 
     48{ 
    4549        ifxmips_port_set_output(0, gpio); 
    4650} 
    4751 
    48 static inline int gpio_request(unsigned gpio, const char *label) { 
     52static inline int 
     53gpio_request(unsigned gpio, const char *label) 
     54{ 
    4955        return 0; 
    5056} 
    5157 
    52 static inline void gpio_free(unsigned gpio) { 
     58static inline void 
     59gpio_free(unsigned gpio) 
     60{ 
    5361} 
    5462 
    55 static inline int gpio_to_irq(unsigned gpio) { 
     63static inline int 
     64gpio_to_irq(unsigned gpio) 
     65{ 
    5666        return 0; 
    5767} 
    5868 
    59 static inline int irq_to_gpio(unsigned irq) { 
     69static inline int 
     70irq_to_gpio(unsigned irq) 
     71{ 
    6072        return 0; 
    6173} 
    6274 
    63 static inline int gpio_cansleep(unsigned gpio) { 
     75static inline int 
     76gpio_cansleep(unsigned gpio) 
     77{ 
    6478        return 0; 
    6579} 
    6680 
    67 static inline int gpio_get_value_cansleep(unsigned gpio) { 
     81static inline int 
     82gpio_get_value_cansleep(unsigned gpio) 
     83{ 
    6884        might_sleep(); 
    6985        return gpio_get_value(gpio); 
    7086} 
    7187 
    72 static inline void gpio_set_value_cansleep(unsigned gpio, int value) { 
     88static inline void 
     89gpio_set_value_cansleep(unsigned gpio, int value) 
     90{ 
    7391        might_sleep(); 
    7492        gpio_set_value(gpio, value); 
    7593} 
    76  
    7794#endif 
    78  
  • trunk/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/irq.h

    r11396 r11573  
    11/* 
    2  *   include/asm-mips/mach-ifxmips/irq.h  
    3  * 
    42 *   This program is free software; you can redistribute it and/or modify 
    53 *   it under the terms of the GNU General Public License as published by 
     
    1715 * 
    1816 *   Copyright (C) 2007 John Crispin <blogic@openwrt.org>  
    19  * 
    2017 */ 
    2118 
  • trunk/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/war.h

    r11071 r11573  
    11/* 
    2  * This file is subject to the terms and conditions of the GNU General Public 
    3  * License.  See the file "COPYING" in the main directory of this archive 
    4  * for more details. 
     2 *   This program is free software; you can redistribute it and/or modify 
     3 *   it under the terms of the GNU General Public License as published by 
     4 *   the Free Software Foundation; either version 2 of the License, or 
     5 *   (at your option) any later version. 
    56 * 
     7 *   This program is distributed in the hope that it will be useful, 
     8 *   but WITHOUT ANY WARRANTY; without even the implied warranty of 
     9 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     10 *   GNU General Public License for more details. 
     11 * 
     12 *   You should have received a copy of the GNU General Public License 
     13 *   along with this program; if not, write to the Free Software 
     14 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     15 * 
     16 *   Copyright (C) 2007 John Crispin <blogic@openwrt.org>  
    617 */ 
     18 
    719#ifndef __ASM_MIPS_MACH_IFXMIPS_WAR_H 
    820#define __ASM_MIPS_MACH_IFXMIPS_WAR_H 
Note: See TracChangeset for help on using the changeset viewer.