mirror of
https://github.com/apache/nuttx.git
synced 2026-08-07 05:27:17 +00:00
All SAM TWI: g_twiops should be both static and const
This commit is contained in:
parent
400aead74a
commit
4a8ac55c9d
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue