]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
Coding Style cleanup
authorWolfgang Denk <wd@denx.de>
Wed, 27 Oct 2010 20:48:30 +0000 (22:48 +0200)
committerWolfgang Denk <wd@denx.de>
Wed, 27 Oct 2010 20:48:30 +0000 (22:48 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
32 files changed:
MAKEALL
README
arch/arm/cpu/arm926ejs/kirkwood/dram.c
arch/arm/cpu/pxa/cpu.c
arch/microblaze/cpu/start.S
arch/sh/lib/bootm.c
board/bct-brettl2/cled.c
board/davedenx/qong/fpga.c
board/isee/igep0030/config.mk
board/xes/common/fsl_8xxx_misc.c
board/xes/xpedite550x/ddr.c
doc/README.arm-relocation
drivers/fpga/lattice.c
drivers/mmc/omap_hsmmc.c
drivers/serial/atmel_usart.h
drivers/usb/gadget/config.c
drivers/usb/gadget/epautoconf.c
drivers/usb/gadget/ether.c
drivers/usb/gadget/usbstring.c
include/configs/a4m072.h
include/configs/bct-brettl2.h
include/configs/blackvme.h
include/configs/mx1ads.h
include/configs/mx1fs2.h
include/configs/scb9328.h
include/lattice.h
include/linux/fb.h
include/linux/kbuild.h
include/linux/usb/cdc.h
lib/hashtable.c
lib/qsort.c
post/board/lwmon5/fpga.c

diff --git a/MAKEALL b/MAKEALL
index db11f134b8b517b98499d7ebf2f7289f7fd35312..c54c6e8cf95eb3bbba05fa0881d4454347309550 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -56,7 +56,7 @@ LONG_OPTS="arch:,cpu:,vendor:,soc:"
 
 # Option processing based on util-linux-2.13/getopt-parse.bash
 
-# Note that we use `"$@"' to let each command-line parameter expand to a 
+# Note that we use `"$@"' to let each command-line parameter expand to a
 # separate word. The quotes around `$@' are essential!
 # We need TEMP as the `eval set --' would nuke the return value of
 # getopt.
diff --git a/README b/README
index 3d8742386c0b30616f373738f8aa7f701cb9f95b..f559811278dbf110c02c84e4f60052979628d609 100644 (file)
--- a/README
+++ b/README
@@ -2364,11 +2364,11 @@ Configuration Settings:
 
 - CONFIG_ENV_MAX_ENTRIES
 
-        Maximum number of entries in the hash table that is used
-        internally to store the environment settings. The default
-        setting is supposed to be generous and should work in most
-        cases. This setting can be used to tune behaviour; see
-        lib/hashtable.c for details.
+       Maximum number of entries in the hash table that is used
+       internally to store the environment settings. The default
+       setting is supposed to be generous and should work in most
+       cases. This setting can be used to tune behaviour; see
+       lib/hashtable.c for details.
 
 The following definitions that deal with the placement and management
 of environment data (variable area); in general, we support the
index 7439c87f681070cb3ab24c615afcf8642bbb6ca7..342afe9cd06726316e5c64521c09104b4a0c96f2 100644 (file)
@@ -93,4 +93,3 @@ void dram_init_banksize(void)
        dram_init();
 }
 #endif /* CONFIG_SYS_BOARD_DRAM_INIT */
-
index 3ea34582e7a34a04a0ccef372b5c95be3c81279d..7d49cbb4fd9af1a33e425e33267213fc497addc2 100644 (file)
@@ -312,7 +312,7 @@ void pxa_wakeup(void)
 int arch_cpu_init(void)
 {
        pxa_gpio_setup();
-//     pxa_wait_ticks(0x8000);
+/*     pxa_wait_ticks(0x8000); */
        pxa_wakeup();
        pxa_interrupt_setup();
        pxa_clock_setup();
index d44903b2b8f30b67ac443c73fba3b5af96b25015..93a9efdf1065d72f6cf8f22c2369c0e4b543e609 100644 (file)
@@ -98,7 +98,7 @@ _start:
         * 0xC: 0xB808XXXX
         *
         * then it is necessary to count address for storing the most significant
-        * 16bits from _exception_handler address and copy it to 
+        * 16bits from _exception_handler address and copy it to
         * 0xa address. Big endian use offset in r10=0 that's why is it just
         * 0xa address. The same is done for the least significant 16 bits
         * for 0xe address.
index f38d0b0e8e3fbc4e9276ff24cd212a2ea43b0a76..19b3a94023c1236390991bca966e52b6e84d395e 100644 (file)
@@ -109,7 +109,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
                                ramdisk_flags |= RD_PROMPT;
                else
                                ramdisk_flags &= ~RD_PROMPT;
-                                       
+
                val = sh_check_cmd_arg(bootargs, CMD_ARG_RD_DOLOAD, 10);
                if (val == 1)
                                ramdisk_flags |= RD_DOLOAD;
index 9e73c57b8789466ec1802b2444ea3f35d36ede94..dcb91bdffad707e4d0f0e9f3320cbb516e669488 100644 (file)
@@ -13,7 +13,7 @@
 
 int do_cled(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-       ulong addr = 0x20000000 + 0x200000; // AMS2
+       ulong addr = 0x20000000 + 0x200000; /* AMS2 */
        uchar data;
 
        if (argc < 2)
index f865eb422563142a71a692bf83e301d0a69789ee..656d5cde95a4933b81bbbbcd1eee962a92118abf 100644 (file)
@@ -92,4 +92,3 @@ int qong_fpga_init(void)
 }
 
 #endif
-
index 35865e06a490f2d7be8098738b0bc8e24529d429..019f93f20075c33df663df569d957bd32ee551ea 100644 (file)
@@ -31,4 +31,3 @@
 
 # For use with external or internal boots.
 TEXT_BASE = 0x80008000
-
index b7fa6950b07c736bde4f9e5c17895cee5e1fbd12..36e9146654c941f89c3e8c149c02381d9135d0e4 100644 (file)
@@ -52,11 +52,9 @@ uint get_board_derivative(void)
 #endif
 
        /*
-        * The top 4 lines of the local bus address are pulled low/high and
-        * can be read to determine the least significant digit of a board's
-        * model number.
-        */
+       * The top 4 lines of the local bus address are pulled low/high and
+       * can be read to determine the least significant digit of a board's
+       * model number.
+       */
        return gur->gpporcr >> 28;
 }
-
-
index 718cd989bbf78f208d40b1e5cce9e7f1d0b334e2..38a459715fda4aa6642316aa7cbb6a05a7d85593 100644 (file)
@@ -55,16 +55,16 @@ unsigned int fsl_ddr_get_mem_data_rate(void)
  *     There are traditionally three board-specific SDRAM timing parameters
  *     which must be calculated based on the particular PCB artwork.  These are:
  *     1.) CPO (Read Capture Delay)
- *             - TIMING_CFG_2 register
- *             Source: Calculation based on board trace lengths and
- *                     chip-specific internal delays.
+ *            - TIMING_CFG_2 register
+ *            Source: Calculation based on board trace lengths and
+ *                    chip-specific internal delays.
  *     2.) CLK_ADJUST (Clock and Addr/Cmd alignment control)
- *             - DDR_SDRAM_CLK_CNTL register
- *             Source: Signal Integrity Simulations
+ *            - DDR_SDRAM_CLK_CNTL register
+ *            Source: Signal Integrity Simulations
  *     3.) 2T Timing on Addr/Ctl
- *             - TIMING_CFG_2 register
- *             Source: Signal Integrity Simulations
- *             Usually only needed with heavy load/very high speed (>DDR2-800)
+ *            - TIMING_CFG_2 register
+ *            Source: Signal Integrity Simulations
+ *            Usually only needed with heavy load/very high speed (>DDR2-800)
  *
  *     ====== XPedite550x DDR3-800 read delay calculations ======
  *
@@ -82,14 +82,14 @@ typedef struct {
 const board_specific_parameters_t board_specific_parameters[][20] = {
        {
                /* Controller 0 */
-                {
+               {
                        /* DDR3-600/667 */
                        .datarate_mhz_low       = 500,
                        .datarate_mhz_high      = 750,
                        .clk_adjust             = 5,
                        .cpo                    = 31,
                },
-                {
+               {
                        /* DDR3-800 */
                        .datarate_mhz_low       = 750,
                        .datarate_mhz_high      = 850,
@@ -162,4 +162,3 @@ void fsl_ddr_board_options(memctl_options_t *popts,
        popts->rtt_override = 1;
        popts->rtt_override_value = 3;
 }
-
index 3856633e9d90d49e2454815c6d46bcb0b1911d2c..dc7be7e42e485614fb670774fe09384f18af472b 100644 (file)
@@ -93,7 +93,7 @@ Relocation with NAND_SPL (example for the tx25):
   and start with code execution on this address.
 
 - The First page contains u-boot code from u-boot:nand_spl/nand_boot_fsl_nfc.c
-  which inits the dram, cpu registers, reloacte itself to CONFIG_SYS_TEXT_BASE  and loads
+  which inits the dram, cpu registers, reloacte itself to CONFIG_SYS_TEXT_BASE and loads
   the "real" u-boot to CONFIG_SYS_NAND_U_BOOT_DST and starts execution
   @CONFIG_SYS_NAND_U_BOOT_START
 
@@ -162,7 +162,7 @@ e) load new symbol table:
 
 (gdb) add-symbol-file u-boot 0x8ff08000
 add symbol table from file "u-boot" at
-        .text_addr = 0x8ff08000
+       .text_addr = 0x8ff08000
 (y or n) y
 Reading symbols from /home/hs/celf/u-boot/u-boot...done.
 (gdb) c
@@ -170,12 +170,12 @@ Continuing.
 ^C
 Program received signal SIGSTOP, Stopped (signal).
 0x8ff17f18 in serial_getc () at serial_mxc.c:192
-192             while (__REG(UART_PHYS + UTS) & UTS_RXEMPTY);
+192            while (__REG(UART_PHYS + UTS) & UTS_RXEMPTY);
 (gdb)
 
 add-symbol-file u-boot 0x8ff08000
-                       ^^^^^^^^^^
-                       get this address from u-boot debug printfs
+                      ^^^^^^^^^^
+                      get this address from u-boot debug printfs
 
 U-Boot 2010.06-rc2-00009-gf77b8b8-dirty (Jun 22 2010 - 09:43:46)
 
@@ -187,7 +187,7 @@ Top of RAM usable for U-Boot at: 90000000
 LCD panel info: 640 x 480, 16 bit/pix
 Reserving 600k for LCD Framebuffer at: 8ff6a000
 Reserving 391k for U-Boot at: 8ff08000
-                              ^^^^^^^^
+                             ^^^^^^^^
 Reserving 1280k for malloc() at: 8fdc8000
 Reserving 24 Bytes for Board Info at: 8fdc7fe8
 Reserving 52 Bytes for Global Data at: 8fdc7fb4
@@ -197,6 +197,6 @@ Bank #0: 80000000 256 MiB
 relocation Offset is: eff08000
 mon: 00058BAC gd->monLen: 00061F10
 Now running in RAM - U-Boot at: 8ff08000
-                                ^^^^^^^^
+                               ^^^^^^^^
 
 Now you can use gdb as usual :-)
index a0e782310241580edce899f13127a201b0a5036a..c3b2355f9418c840e8727190b8daabec77e99b65 100644 (file)
@@ -395,5 +395,3 @@ int lattice_info(Lattice_desc *desc)
 
        return ret_val;
 }
-
-
index 9271470e3681cff18ddf95d9287345d338fc325b..c7f76209f33cbe8a6ca23d490bf31958c121ec4c 100644 (file)
@@ -412,4 +412,3 @@ int omap_mmc_init(int dev_index)
 
        return 0;
 }
-
index 7cfc2d500cb938bef0043643d107e6b77ea7694f..7e4b2c9c69ed50dac3dc2692514a6a84cd7d6176 100644 (file)
@@ -42,7 +42,7 @@ typedef struct atmel_usart3 {
        u32     reserved1;
        u32     ifr;
        u32     man;
-       u32     reserved2[54]; // version and PDC not needed
+       u32     reserved2[54]; /* version and PDC not needed */
 } atmel_usart3_t;
 
 /* Bitfields in CR */
index cf22629b971d95471fdf0480505f3c7105d0d038..f9163a80ed17cbcf912f0e4baf2a9b39fc6705e5 100644 (file)
@@ -116,4 +116,3 @@ int usb_gadget_config_buf(
        cp->bmAttributes |= USB_CONFIG_ATT_ONE;
        return len;
 }
-
index 7cf3c673ddd702641ce620205a0571a7df90bb94..18964894215f025063f66b69e6e8311ed19b7c34 100644 (file)
@@ -302,4 +302,3 @@ void usb_ep_autoconfig_reset(struct usb_gadget *gadget)
 #endif
        epnum = 0;
 }
-
index b22ca90fc6824b92e19c34cea1f69b10d2675777..5a18e035b6ef9f39d1c20becf9dea85e46931ebe 100644 (file)
@@ -1968,4 +1968,3 @@ fail:
        error("%s failed. error = %d", __func__, status);
        return status;
 }
-
index 6e9d1bf0f29b408c34df71834143d9a91cdb84ef..95555cf96b9c3a1f1b52482c54c5ae9830ae3a2a 100644 (file)
@@ -137,4 +137,3 @@ usb_gadget_get_string(struct usb_gadget_strings *table, int id, u8 *buf)
        buf[1] = USB_DT_STRING;
        return buf[0];
 }
-
index 20c119aede1546108685053cadf17c41ed239ab1..b5d20bd7b25d1386b2c58e2de042d28417041f19 100644 (file)
@@ -79,7 +79,7 @@
 #define CONFIG_SYS_XLB_PIPELINING      1
 
 #undef CONFIG_NET_MULTI
-#undef CONFIG_EEPRO100 
+#undef CONFIG_EEPRO100
 
 /* Partitions */
 #define CONFIG_MAC_PARTITION
index 09691d37377410b04f739cb039053471452e8b52..608ab9f41a4dfe8047b0cf9963b986a13301cdb5 100644 (file)
@@ -11,7 +11,7 @@
 /*
  * Processor Settings
  */
-#define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_BYPASS
+#define CONFIG_BFIN_BOOT_MODE      BFIN_BOOT_BYPASS
 
 
 /*
  */
 /* CONFIG_CLKIN_HZ is any value in Hz                                  */
 #define CONFIG_CLKIN_HZ                        16384000
-/* CLKIN_HALF controls the DF bit in PLL_CTL      0 = CLKIN            */
-/*                                                1 = CLKIN / 2                */
+/* CLKIN_HALF controls the DF bit in PLL_CTL     0 = CLKIN             */
+/*                                               1 = CLKIN / 2         */
 #define CONFIG_CLKIN_HALF              0
 /* PLL_BYPASS controls the BYPASS bit in PLL_CTL  0 = do not bypass    */
-/*                                                1 = bypass PLL       */
+/*                                               1 = bypass PLL        */
 #define CONFIG_PLL_BYPASS              0
 /* VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL             */
 /* Values can range from 0-63 (where 0 means 64)                       */
@@ -36,7 +36,7 @@
 /* SCLK_DIV controls the system clock divider                          */
 /* Values can range from 1-15                                          */
 #define CONFIG_SCLK_DIV                        3
-#define CONFIG_VR_CTL_VAL       (VLEV_110 | GAIN_20 | FREQ_1000)
+#define CONFIG_VR_CTL_VAL      (VLEV_110 | GAIN_20 | FREQ_1000)
 
 
 /*
  * it linked after the configuration sector.
  */
 # define LDS_BOARD_TEXT \
-        arch/blackfin/cpu/traps.o            (.text .text.*); \
-        arch/blackfin/cpu/interrupt.o        (.text .text.*); \
-        arch/blackfin/cpu/serial.o           (.text .text.*); \
-        common/dlmalloc.o               (.text .text.*); \
-        lib/crc32.o             (.text .text.*); \
-        . = DEFINED(env_offset) ? env_offset : .; \
-        common/env_embedded.o           (.text .text.*);
+       arch/blackfin/cpu/traps.o            (.text .text.*); \
+       arch/blackfin/cpu/interrupt.o        (.text .text.*); \
+       arch/blackfin/cpu/serial.o           (.text .text.*); \
+       common/dlmalloc.o               (.text .text.*); \
+       lib/crc32.o             (.text .text.*); \
+       . = DEFINED(env_offset) ? env_offset : .; \
+       common/env_embedded.o           (.text .text.*);
 #endif
 
 
index 8b2bdc715d6a36eb909787c7aa59c45fae5959c7..e4688a27b4a81c791fec1bbc7e9e7e313bdd6736 100644 (file)
  * AX88180  WEN = 5 clocks  REN 6 clocks @ SCLK = 100 MHz
  * One extra clock needed because AX88180 is asynchronous to CPU.
  */
-                           /* bank 1   0 */
+                          /* bank 1   0 */
 #define CONFIG_EBIU_AMBCTL0_VAL 0xFFC2FFC2
-                           /* bank 3   2 */
+                          /* bank 3   2 */
 #define CONFIG_EBIU_AMBCTL1_VAL 0xFFC2FFC2
 
 /* memory layout */
index 21b7ec7e1b2fafa9b9120c33f71b1f1c8f48498d..166da6ca7fd6f2e17122d9c26faddd3cce298a41 100644 (file)
@@ -60,8 +60,6 @@
 
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
-
-
 /*
  *  CS8900 Ethernet drivers
  */
@@ -79,7 +77,6 @@
 
 #define CONFIG_BAUDRATE                115200
 
-
 /*
  * BOOTP options
  */
@@ -88,7 +85,6 @@
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-
 /*
  * Command line configuration.
  */
@@ -98,7 +94,6 @@
 #define CONFIG_CMD_REGINFO
 #define CONFIG_CMD_ELF
 
-
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_BOOTARGS                "root=/dev/msdk mem=48M"
 #define CONFIG_BOOTFILE                "mx1ads"
index 0641befeb17af960c9a9877e4729590b99e7e67e..1632ce82ba33fb2aeb873654996453f43e6c308f 100644 (file)
@@ -34,7 +34,6 @@
 #undef _CONFIG_UART4 /* internal uart 4 */
 #undef CONFIG_SILENT_CONSOLE  /* use this to disable output */
 
-
 /*
  * BOOTP options
  */
@@ -43,7 +42,6 @@
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-
 /*
  * Command line configuration.
  */
@@ -58,7 +56,6 @@
 #undef CONFIG_CMD_PING
 #undef CONFIG_CMD_SOURCE
 
-
 /*
  * Boot options. Setting delay to -1 stops autostart count down.
  */
@@ -98,8 +95,6 @@
  */
 #define CONFIG_SYS_MALLOC_LEN    (CONFIG_ENV_SIZE + (128<<10) )
 
-
-
 #define CONFIG_STACKSIZE       (120<<10)      /* stack size */
 
 #ifdef CONFIG_USE_IRQ
index c0ae2d9d240b3f3b35f7da81ae66bfa1b62c9a59..3da214e99dda14857464b1f00745dbf53df58f33 100644 (file)
@@ -35,7 +35,6 @@
  * Select serial console configuration
  */
 
-
 /*
  * BOOTP options
  */
@@ -44,7 +43,6 @@
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-
 /*
  * Command line configuration.
  */
@@ -58,7 +56,6 @@
 #undef CONFIG_CMD_LOADS
 #undef CONFIG_CMD_SOURCE
 
-
 /*
  * Boot options. Setting delay to -1 stops autostart count down.
  * NOTE: Sending parameters to kernel depends on kernel version and
 #define CONFIG_INITRD_TAG           1   /* send initrd params               */
 #undef CONFIG_VFD                       /* do not send framebuffer setup    */
 
-
 /*
  * Malloc pool need to host env + 128 Kb reserve for other allocations.
  */
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + (128<<10) )
 
-
-
 #define CONFIG_STACKSIZE       (120<<10)      /* stack size                 */
 
 #ifdef CONFIG_USE_IRQ
 #define SCB9328_SDRAM_1                0x08000000      /* SDRAM bank #1           */
 #define SCB9328_SDRAM_1_SIZE   0x01000000      /* 16 MB                   */
 
-/*
- * Flash Controller settings
- */
-
-/*
- * Hardware drivers
- */
-
-
 /*
  * Configuration for FLASH memory for the Synertronixx board
  */
index 75729b605ab6a90dc49fc61930fe33ada2ea4db9..e965663579e6919435327915bd0af23e27d9ffe3 100755 (executable)
@@ -317,4 +317,3 @@ void writePort(unsigned char pins, unsigned char value);
 unsigned char readPort(void);
 void sclock(void);
 #endif
-
index f4ac4bf90e8bf1bbd622d76fb3b709a3d956eaa6..3858f8f80f6b6cc17ea62976a78d11578025bcf8 100644 (file)
@@ -26,13 +26,13 @@ struct fb_fix_screeninfo {
        __u32 type;                     /* see FB_TYPE_*                */
        __u32 type_aux;                 /* Interleave for interleaved Planes */
        __u32 visual;                   /* see FB_VISUAL_*              */
-       __u16 xpanstep;                 /* zero if no hardware panning  */
-       __u16 ypanstep;                 /* zero if no hardware panning  */
-       __u16 ywrapstep;                /* zero if no hardware ywrap    */
-       __u32 line_length;              /* length of a line in bytes    */
-       unsigned long mmio_start;       /* Start of Memory Mapped I/O   */
+       __u16 xpanstep;                 /* zero if no hardware panning  */
+       __u16 ypanstep;                 /* zero if no hardware panning  */
+       __u16 ywrapstep;                /* zero if no hardware ywrap    */
+       __u32 line_length;              /* length of a line in bytes    */
+       unsigned long mmio_start;       /* Start of Memory Mapped I/O   */
                                        /* (physical address) */
-       __u32 mmio_len;                 /* Length of Memory Mapped I/O  */
+       __u32 mmio_len;                 /* Length of Memory Mapped I/O  */
        __u32 accel;                    /* Indicate to driver which     */
                                        /*  specific chip/card we have  */
        __u16 reserved[3];              /* Reserved for future compatibility */
@@ -56,7 +56,7 @@ struct fb_bitfield {
 
 };
 
-#define FB_NONSTD_HAM          1       /* Hold-And-Modify (HAM)        */
+#define FB_NONSTD_HAM          1       /* Hold-And-Modify (HAM)        */
 #define FB_NONSTD_REV_PIX_IN_B 2       /* order of pixels in each byte is reversed */
 
 #define FB_ACTIVATE_NOW                0       /* set values immediately (or vbl)*/
@@ -64,38 +64,38 @@ struct fb_bitfield {
 #define FB_ACTIVATE_TEST       2       /* don't set, round up impossible */
 #define FB_ACTIVATE_MASK       15
                                        /* values                       */
-#define FB_ACTIVATE_VBL               16       /* activate values on next vbl  */
+#define FB_ACTIVATE_VBL               16       /* activate values on next vbl  */
 #define FB_CHANGE_CMAP_VBL     32      /* change colormap on vbl       */
 #define FB_ACTIVATE_ALL               64       /* change all VCs on this fb    */
 #define FB_ACTIVATE_FORCE     128      /* force apply even when no change*/
-#define FB_ACTIVATE_INV_MODE  256       /* invalidate videomode */
+#define FB_ACTIVATE_INV_MODE  256      /* invalidate videomode */
 
 #define FB_SYNC_HOR_HIGH_ACT   1       /* horizontal sync high active  */
 #define FB_SYNC_VERT_HIGH_ACT  2       /* vertical sync high active    */
 #define FB_SYNC_EXT            4       /* external sync                */
-#define FB_SYNC_COMP_HIGH_ACT  8       /* composite sync high active   */
-#define FB_SYNC_BROADCAST      16      /* broadcast video timings      */
+#define FB_SYNC_COMP_HIGH_ACT  8       /* composite sync high active   */
+#define FB_SYNC_BROADCAST      16      /* broadcast video timings      */
                                        /* vtotal = 144d/288n/576i => PAL  */
                                        /* vtotal = 121d/242n/484i => NTSC */
 #define FB_SYNC_ON_GREEN       32      /* sync on green */
 
-#define FB_VMODE_NONINTERLACED  0      /* non interlaced */
+#define FB_VMODE_NONINTERLACED       /* non interlaced */
 #define FB_VMODE_INTERLACED    1       /* interlaced   */
 #define FB_VMODE_DOUBLE                2       /* double scan */
 #define FB_VMODE_ODD_FLD_FIRST 4       /* interlaced: top line first */
 #define FB_VMODE_MASK          255
 
-#define FB_VMODE_YWRAP         256     /* ywrap instead of panning     */
+#define FB_VMODE_YWRAP         256     /* ywrap instead of panning     */
 #define FB_VMODE_SMOOTH_XPAN   512     /* smooth xpan possible (internally used) */
 #define FB_VMODE_CONUPDATE     512     /* don't update x/yoffset       */
 
 /*
  * Display rotation support
  */
-#define FB_ROTATE_UR      0
-#define FB_ROTATE_CW      1
-#define FB_ROTATE_UD      2
-#define FB_ROTATE_CCW     3
+#define FB_ROTATE_UR     0
+#define FB_ROTATE_CW     1
+#define FB_ROTATE_UD     2
+#define FB_ROTATE_CCW    3
 
 #define PICOS2KHZ(a) (1000000000UL/(a))
 #define KHZ2PICOS(a) (1000000000UL/(a))
@@ -154,10 +154,10 @@ struct fb_con2fbmap {
 };
 
 /* VESA Blanking Levels */
-#define VESA_NO_BLANKING        0
-#define VESA_VSYNC_SUSPEND      1
-#define VESA_HSYNC_SUSPEND      2
-#define VESA_POWERDOWN          3
+#define VESA_NO_BLANKING       0
+#define VESA_VSYNC_SUSPEND     1
+#define VESA_HSYNC_SUSPEND     2
+#define VESA_POWERDOWN         3
 
 
 enum {
@@ -234,12 +234,12 @@ struct fb_image {
  */
 
 #define FB_CUR_SETIMAGE 0x01
-#define FB_CUR_SETPOS   0x02
-#define FB_CUR_SETHOT   0x04
-#define FB_CUR_SETCMAP  0x08
+#define FB_CUR_SETPOS  0x02
+#define FB_CUR_SETHOT  0x04
+#define FB_CUR_SETCMAP 0x08
 #define FB_CUR_SETSHAPE 0x10
 #define FB_CUR_SETSIZE 0x20
-#define FB_CUR_SETALL   0xFF
+#define FB_CUR_SETALL  0xFF
 
 struct fbcurpos {
        __u16 x, y;
@@ -377,29 +377,29 @@ struct fb_cursor_user {
  *     if you own it
  */
 #define FB_EVENT_RESUME                        0x03
-/*      An entry from the modelist was removed */
-#define FB_EVENT_MODE_DELETE            0x04
-/*      A driver registered itself */
-#define FB_EVENT_FB_REGISTERED          0x05
-/*      A driver unregistered itself */
-#define FB_EVENT_FB_UNREGISTERED        0x06
-/*      CONSOLE-SPECIFIC: get console to framebuffer mapping */
-#define FB_EVENT_GET_CONSOLE_MAP        0x07
-/*      CONSOLE-SPECIFIC: set console to framebuffer mapping */
-#define FB_EVENT_SET_CONSOLE_MAP        0x08
-/*      A hardware display blank change occured */
-#define FB_EVENT_BLANK                  0x09
-/*      Private modelist is to be replaced */
-#define FB_EVENT_NEW_MODELIST           0x0A
+/*     An entry from the modelist was removed */
+#define FB_EVENT_MODE_DELETE           0x04
+/*     A driver registered itself */
+#define FB_EVENT_FB_REGISTERED         0x05
+/*     A driver unregistered itself */
+#define FB_EVENT_FB_UNREGISTERED       0x06
+/*     CONSOLE-SPECIFIC: get console to framebuffer mapping */
+#define FB_EVENT_GET_CONSOLE_MAP       0x07
+/*     CONSOLE-SPECIFIC: set console to framebuffer mapping */
+#define FB_EVENT_SET_CONSOLE_MAP       0x08
+/*     A hardware display blank change occured */
+#define FB_EVENT_BLANK                 0x09
+/*     Private modelist is to be replaced */
+#define FB_EVENT_NEW_MODELIST          0x0A
 /*     The resolution of the passed in fb_info about to change and
-        all vc's should be changed         */
+       all vc's should be changed         */
 #define FB_EVENT_MODE_CHANGE_ALL       0x0B
 /*     A software display blank change occured */
-#define FB_EVENT_CONBLANK               0x0C
-/*      Get drawing requirements        */
-#define FB_EVENT_GET_REQ                0x0D
-/*      Unbind from the console if possible */
-#define FB_EVENT_FB_UNBIND              0x0E
+#define FB_EVENT_CONBLANK              0x0C
+/*     Get drawing requirements        */
+#define FB_EVENT_GET_REQ               0x0D
+/*     Unbind from the console if possible */
+#define FB_EVENT_FB_UNBIND             0x0E
 
 struct fb_event {
        struct fb_info *info;
@@ -421,10 +421,10 @@ struct fb_blit_caps {
  * format the hardware needs.
  */
 
-#define FB_PIXMAP_DEFAULT 1     /* used internally by fbcon */
-#define FB_PIXMAP_SYSTEM  2     /* memory is in system RAM  */
-#define FB_PIXMAP_IO      4     /* memory is iomapped       */
-#define FB_PIXMAP_SYNC    256   /* set if GPU can DMA       */
+#define FB_PIXMAP_DEFAULT 1    /* used internally by fbcon */
+#define FB_PIXMAP_SYSTEM  2    /* memory is in system RAM  */
+#define FB_PIXMAP_IO     4     /* memory is iomapped       */
+#define FB_PIXMAP_SYNC   256   /* set if GPU can DMA       */
 
 struct fb_pixmap {
        u8  *addr;              /* pointer to memory                    */
@@ -434,10 +434,10 @@ struct fb_pixmap {
        u32 scan_align;         /* alignment per scanline               */
        u32 access_align;       /* alignment per read/write (bits)      */
        u32 flags;              /* see FB_PIXMAP_*                      */
-       u32 blit_x;             /* supported bit block dimensions (1-32)*/
-       u32 blit_y;             /* Format: blit_x = 1 << (width - 1)    */
-                               /*         blit_y = 1 << (height - 1)   */
-                               /* if 0, will be set to 0xffffffff (all)*/
+       u32 blit_x;             /* supported bit block dimensions (1-32)*/
+       u32 blit_y;             /* Format: blit_x = 1 << (width - 1)    */
+                               /*         blit_y = 1 << (height - 1)   */
+                               /* if 0, will be set to 0xffffffff (all)*/
        /* access methods */
        void (*writeio)(struct fb_info *info, void *dst, void *src, unsigned int size);
        void (*readio) (struct fb_info *info, void *dst, void *src, unsigned int size);
@@ -488,7 +488,7 @@ struct fb_deferred_io {
  * meaning, it is set by the fb subsystem depending FOREIGN_ENDIAN flag
  * and host endianness. Drivers should not use this flag.
  */
-#define FBINFO_BE_MATH  0x100000
+#define FBINFO_BE_MATH 0x100000
 
 struct fb_info {
        int node;
@@ -499,7 +499,7 @@ struct fb_info {
        struct fb_pixmap pixmap;        /* Image hardware mapper */
        struct fb_pixmap sprite;        /* Cursor hardware mapper */
        struct fb_cmap cmap;            /* Current cmap */
-       struct list_head modelist;      /* mode list */
+       struct list_head modelist;      /* mode list */
        struct fb_videomode *mode;      /* current mode */
 
        char *screen_base;      /* Virtual address */
@@ -508,7 +508,7 @@ struct fb_info {
 #define FBINFO_STATE_RUNNING   0
 #define FBINFO_STATE_SUSPENDED 1
        u32 state;                      /* Hardware state i.e suspend */
-       void *fbcon_par;                /* fbcon use-only private area */
+       void *fbcon_par;                /* fbcon use-only private area */
        /* From here on everything is device dependent */
        void *par;
 };
@@ -518,14 +518,14 @@ struct fb_info {
 #define FBINFO_FLAG_MODULE     FBINFO_MODULE
 #define FBINFO_FLAG_DEFAULT    FBINFO_DEFAULT
 
-// This will go away
+/* This will go away */
 #if defined(__sparc__)
 
 /* We map all of our framebuffers such that big-endian accesses
  * are what we want, so the following is sufficient.
  */
 
-// This will go away
+/* This will go away */
 #define fb_readb sbus_readb
 #define fb_readw sbus_readw
 #define fb_readl sbus_readl
@@ -562,7 +562,7 @@ struct fb_info {
 
 #endif
 
-#define FB_LEFT_POS(p, bpp)          (fb_be_math(p) ? (32 - (bpp)) : 0)
+#define FB_LEFT_POS(p, bpp)         (fb_be_math(p) ? (32 - (bpp)) : 0)
 #define FB_SHIFT_HIGH(p, val, bits)  (fb_be_math(p) ? (val) >> (bits) : \
                                                      (val) << (bits))
 #define FB_SHIFT_LOW(p, val, bits)   (fb_be_math(p) ? (val) << (bits) : \
@@ -580,7 +580,7 @@ struct fb_info {
 #define FB_MODE_IS_VESA                4
 #define FB_MODE_IS_CALCULATED  8
 #define FB_MODE_IS_FIRST       16
-#define FB_MODE_IS_FROM_VAR     32
+#define FB_MODE_IS_FROM_VAR    32
 
 
 /* drivers/video/fbcmap.c */
index be763842c0bde75b90c4e93035a4f6405725be42..ab7805a3b44330931a4be453f85cc86597590753 100644 (file)
@@ -7,7 +7,7 @@
 #define __LINUX_KBUILD_H
 
 #define DEFINE(sym, val) \
-        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
+       asm volatile("\n->" #sym " %0 " #val : : "i" (val))
 
 #define BLANK() asm volatile("\n->" : : )
 
index 03541cbf219be321a185efed402fe775142baadb..2967284274935aae238a834ca510669a34d5e37c 100644 (file)
@@ -9,8 +9,6 @@
  *                      Remy Bohmer <linux@bohmer.net>
  */
 
-
-
 #define USB_CDC_SUBCLASS_ACM                   0x02
 #define USB_CDC_SUBCLASS_ETHERNET              0x06
 #define USB_CDC_SUBCLASS_WHCM                  0x08
@@ -199,7 +197,6 @@ struct usb_cdc_line_coding {
 #define        USB_CDC_PACKET_TYPE_BROADCAST           (1 << 3)
 #define        USB_CDC_PACKET_TYPE_MULTICAST           (1 << 4) /* filtered */
 
-
 /*-------------------------------------------------------------------------*/
 
 /*
@@ -221,4 +218,3 @@ struct usb_cdc_notification {
        __le16  wIndex;
        __le16  wLength;
 } __attribute__ ((packed));
-
index 57802cfb6ded27e14490e601c1cc081d0829a368..7ac3dddda693897f2a08cfda4ea682e943ab3e39 100644 (file)
@@ -56,7 +56,7 @@
 
 /*
  * [Aho,Sethi,Ullman] Compilers: Principles, Techniques and Tools, 1986
- * [Knuth]            The Art of Computer Programming, part 3 (6.4)
+ * [Knuth]           The Art of Computer Programming, part 3 (6.4)
  */
 
 /*
@@ -252,7 +252,7 @@ int hsearch_r(ENTRY item, ACTION action, ENTRY ** retval,
 
        if (htab->table[idx].used) {
                /*
-                 * Further action might be required according to the
+                * Further action might be required according to the
                 * action value.
                 */
                unsigned hval2;
@@ -283,8 +283,8 @@ int hsearch_r(ENTRY item, ACTION action, ENTRY ** retval,
 
                do {
                        /*
-                         * Because SIZE is prime this guarantees to
-                         * step through all available indices.
+                        * Because SIZE is prime this guarantees to
+                        * step through all available indices.
                         */
                        if (idx <= hval2)
                                idx = htab->size + idx - hval2;
@@ -323,8 +323,8 @@ int hsearch_r(ENTRY item, ACTION action, ENTRY ** retval,
        /* An empty bucket has been found. */
        if (action == ENTER) {
                /*
-                 * If table is full and another entry should be
-                 * entered return with error.
+                * If table is full and another entry should be
+                * entered return with error.
                 */
                if (htab->filled == htab->size) {
                        __set_errno(ENOMEM);
index bb47319f8ba5b1dc30f1b51d3405209b07249414..e771dcfcf2756504bc53916cd0366643ff70a81d 100644 (file)
@@ -23,9 +23,9 @@
 #endif
 
 void qsort(void  *base,
-           size_t nel,
-           size_t width,
-           int (*comp)(const void *, const void *))
+          size_t nel,
+          size_t width,
+          int (*comp)(const void *, const void *))
 {
        size_t wgap, i, j, k;
        char tmp;
index 3067548483980a2921b22e0ea966601050ca4b0b..501369b6a1c56fd4f5af97fb60e3181aa513ed4d 100644 (file)
@@ -227,8 +227,6 @@ static int fpga_mem_test(void)
        return ret;
 }
 
-
-
 /* Verify FPGA addresslines */
 static int fpga_post_addrline(ulong *address, ulong *base, ulong size)
 {