Rename _FifoPut to _fifo_put

Updating nano kernel functions to follow a consistent naming convention.
Part of that process is the removal of camelCase naming conventions for the
preferred_underscore_method.

Change accomplished with the following script:

#!/bin/bash
echo "Searching for ${1} to replace with ${2}"
find . -type f \( -iname \*.c -o -iname \*.h -o -iname \*.s -o -iname \*.kconf \) \
       -not \( -path host/src/genIdt -prune \) \   \
       -not \( -path host/src/gen_tables -prune \) \
       -print | xargs sed -i "s/"${1}"/"${2}"/g"

Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-16 12:25:11 -07:00 committed by Anas Nashif
commit 11b9184955

View file

@ -89,12 +89,12 @@ void nano_fifo_init(struct nano_fifo *chan /* channel to initialize */
chan->stat = 0;
}
FUNC_ALIAS(_FifoPut, nano_isr_fifo_put, void);
FUNC_ALIAS(_FifoPut, nano_fiber_fifo_put, void);
FUNC_ALIAS(_fifo_put, nano_isr_fifo_put, void);
FUNC_ALIAS(_fifo_put, nano_fiber_fifo_put, void);
/*******************************************************************************
*
* _FifoPut - add an element to the end of a fifo
* _fifo_put - add an element to the end of a fifo
*
* This routine adds an element to the end of a fifo object; it may be called
* from either either a fiber or an ISR context. A fiber pending on the fifo
@ -112,7 +112,7 @@ FUNC_ALIAS(_FifoPut, nano_fiber_fifo_put, void);
* without introducing a source code migration issue.
*/
void _FifoPut(struct nano_fifo *chan, /* channel on which to interact */
void _fifo_put(struct nano_fifo *chan, /* channel on which to interact */
void *data /* data to send */
)
{