All SAM TWI: g_twiops should be both static and const

This commit is contained in:
Gregory Nutt 2016-03-09 18:11:55 -06:00
parent 400aead74a
commit 4a8ac55c9d
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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