mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
All SAM TWI: g_twiops should be both static and const
This commit is contained in:
@@ -211,7 +211,7 @@ static struct twi_dev_s g_twi0;
|
||||
static struct twi_dev_s g_twi1;
|
||||
#endif
|
||||
|
||||
struct i2c_ops_s g_twiops =
|
||||
static const struct i2c_ops_s g_twiops =
|
||||
{
|
||||
.transfer = twi_transfer
|
||||
#ifdef CONFIG_I2C_RESET
|
||||
|
||||
@@ -307,7 +307,7 @@ static const struct twi_attr_s g_twi3attr =
|
||||
static struct twi_dev_s g_twi3;
|
||||
#endif
|
||||
|
||||
struct i2c_ops_s g_twiops =
|
||||
static const struct i2c_ops_s g_twiops =
|
||||
{
|
||||
.transfer = twi_transfer
|
||||
#ifdef CONFIG_I2C_RESET
|
||||
|
||||
@@ -287,7 +287,7 @@ static const struct twi_attr_s g_twi2attr =
|
||||
static struct twi_dev_s g_twi2;
|
||||
#endif
|
||||
|
||||
struct i2c_ops_s g_twiops =
|
||||
static const struct i2c_ops_s g_twiops =
|
||||
{
|
||||
.transfer = twi_transfer
|
||||
#ifdef CONFIG_I2C_RESET
|
||||
|
||||
Reference in New Issue
Block a user