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:
parent
8e3f096303
commit
f84c45c220
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user