All SAM TWI: g_twiops should be both static and const
This commit is contained in:
parent
400aead74a
commit
4a8ac55c9d
@ -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…
x
Reference in New Issue
Block a user