Some NuTiny-SDK-NUC120 size reduction; All serial driver vtables should be static const

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5683 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2013-02-27 22:24:49 +00:00
parent 8e3f096303
commit f84c45c220
21 changed files with 21 additions and 21 deletions

View File

@ -123,7 +123,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -137,7 +137,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -104,7 +104,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -126,7 +126,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -269,7 +269,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -243,7 +243,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -117,7 +117,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -103,7 +103,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -111,7 +111,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -103,7 +103,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -116,7 +116,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -116,7 +116,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -582,7 +582,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -269,7 +269,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -174,7 +174,7 @@ static bool up_txready(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -188,7 +188,7 @@ static bool up_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -283,7 +283,7 @@ static bool up_txready(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
.setup = up_setup,
.shutdown = up_shutdown,

View File

@ -113,7 +113,7 @@ static bool z16f_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
z16f_setup, /* setup */
z16f_shutdown, /* shutdown */

View File

@ -100,7 +100,7 @@ static bool ez80_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
ez80_setup, /* setup */
ez80_shutdown, /* shutdown */

View File

@ -104,7 +104,7 @@ static bool z180_txempty(struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
z180_setup, /* setup */
z180_shutdown, /* shutdown */

View File

@ -112,7 +112,7 @@ static bool z8_txempty(FAR struct uart_dev_s *dev);
* Private Variables
****************************************************************************/
struct uart_ops_s g_uart_ops =
static const struct uart_ops_s g_uart_ops =
{
z8_setup, /* setup */
z8_shutdown, /* shutdown */