cosmetic: Fix camel case in ia32 and ia32_pci platforms

Converts camel case routine names to lower-case with underscores to comply with
coding practices.

Change-Id: I9fac0d3858389039c00882a7d2e97fcd4e4c812b
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2015-08-06 11:20:08 -04:00 committed by Anas Nashif
commit 9216a2cbb9
2 changed files with 15 additions and 15 deletions

View file

@ -44,28 +44,28 @@ for the ia32 platform.
#include <init.h> #include <init.h>
#if defined(CONFIG_PIC) || defined(CONFIG_SHUTOFF_PIC) #if defined(CONFIG_PIC) || defined(CONFIG_SHUTOFF_PIC)
#define picInit() _i8259_init() #define pic_init() _i8259_init()
#else #else
#define picInit() \ #define pic_init() \
do {/* nothing */ \ do {/* nothing */ \
} while ((0)) } while ((0))
#endif /* CONFIG_PIC */ #endif /* CONFIG_PIC */
#ifdef CONFIG_LOAPIC #ifdef CONFIG_LOAPIC
#include <drivers/loapic.h> #include <drivers/loapic.h>
static inline void loapicInit(void) static inline void loapic_init(void)
{ {
_loapic_init(); _loapic_init();
} }
#else #else
#define loapicInit() \ #define loapic_init() \
do {/* nothing */ \ do {/* nothing */ \
} while ((0)) } while ((0))
#endif /* CONFIG_LOAPIC */ #endif /* CONFIG_LOAPIC */
#ifdef CONFIG_IOAPIC #ifdef CONFIG_IOAPIC
#include <drivers/ioapic.h> #include <drivers/ioapic.h>
static inline void ioapicInit(void) static inline void ioapic_init(void)
{ {
_ioapic_init(); _ioapic_init();
} }
@ -73,7 +73,7 @@ static inline void ioapicInit(void)
#define uartIrqProg(irq) \ #define uartIrqProg(irq) \
_ioapic_irq_set((irq), (irq) + INT_VEC_IRQ0, UART_IOAPIC_FLAGS) _ioapic_irq_set((irq), (irq) + INT_VEC_IRQ0, UART_IOAPIC_FLAGS)
#else #else
#define ioapicInit(mask) \ #define ioapic_init(mask) \
do {/* nothing */ \ do {/* nothing */ \
} while ((0)) } while ((0))
#define uartIrqProg(irq) \ #define uartIrqProg(irq) \
@ -112,7 +112,7 @@ void uart_generic_info_init(struct uart_init_info *p_info)
#include <console/uart_console.h> #include <console/uart_console.h>
static void consoleInit(void) static void console_init(void)
{ {
struct uart_init_info info; struct uart_init_info info;
@ -122,7 +122,7 @@ static void consoleInit(void)
} }
#else #else
#define consoleInit() \ #define console_init() \
do {/* nothing */ \ do {/* nothing */ \
} while ((0)) } while ((0))
#endif /* defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE) */ #endif /* defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE) */
@ -156,11 +156,11 @@ static int ia32_init(struct device *arg)
{ {
ARG_UNUSED(arg); ARG_UNUSED(arg);
picInit(); /* NOP if not needed */ pic_init(); /* NOP if not needed */
loapicInit(); /* NOP if not needed */ loapic_init(); /* NOP if not needed */
ioapicInit(); /* NOP if not needed */ ioapic_init(); /* NOP if not needed */
consoleInit(); /* NOP if not needed */ console_init(); /* NOP if not needed */
bluetooth_init(); /* NOP if not needed */ bluetooth_init(); /* NOP if not needed */
return 0; return 0;
} }

View file

@ -79,7 +79,7 @@ void uart_generic_info_init(struct uart_init_info *p_info)
#include <console/uart_console.h> #include <console/uart_console.h>
static void consoleInit(void) static void console_init(void)
{ {
struct uart_init_info info; struct uart_init_info info;
@ -89,7 +89,7 @@ static void consoleInit(void)
} }
#else #else
#define consoleInit() \ #define console_init() \
do {/* nothing */ \ do {/* nothing */ \
} while ((0)) } while ((0))
#endif /* defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE) */ #endif /* defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE) */
@ -113,7 +113,7 @@ static int ia32_pci_init(struct device *arg)
_ioapic_irq_set(HPET_TIMER0_IRQ, HPET_TIMER0_VEC, HPET_IOAPIC_FLAGS); _ioapic_irq_set(HPET_TIMER0_IRQ, HPET_TIMER0_VEC, HPET_IOAPIC_FLAGS);
consoleInit(); /* NOP if not needed */ console_init(); /* NOP if not needed */
#ifdef CONFIG_PCI_DEBUG #ifdef CONFIG_PCI_DEBUG
/* Rescan PCI and display the list of PCI attached devices */ /* Rescan PCI and display the list of PCI attached devices */