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;
|
static struct twi_dev_s g_twi1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct i2c_ops_s g_twiops =
|
static const struct i2c_ops_s g_twiops =
|
||||||
{
|
{
|
||||||
.transfer = twi_transfer
|
.transfer = twi_transfer
|
||||||
#ifdef CONFIG_I2C_RESET
|
#ifdef CONFIG_I2C_RESET
|
||||||
|
@ -307,7 +307,7 @@ static const struct twi_attr_s g_twi3attr =
|
|||||||
static struct twi_dev_s g_twi3;
|
static struct twi_dev_s g_twi3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct i2c_ops_s g_twiops =
|
static const struct i2c_ops_s g_twiops =
|
||||||
{
|
{
|
||||||
.transfer = twi_transfer
|
.transfer = twi_transfer
|
||||||
#ifdef CONFIG_I2C_RESET
|
#ifdef CONFIG_I2C_RESET
|
||||||
|
@ -287,7 +287,7 @@ static const struct twi_attr_s g_twi2attr =
|
|||||||
static struct twi_dev_s g_twi2;
|
static struct twi_dev_s g_twi2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct i2c_ops_s g_twiops =
|
static const struct i2c_ops_s g_twiops =
|
||||||
{
|
{
|
||||||
.transfer = twi_transfer
|
.transfer = twi_transfer
|
||||||
#ifdef CONFIG_I2C_RESET
|
#ifdef CONFIG_I2C_RESET
|
||||||
|
Loading…
x
Reference in New Issue
Block a user