Minor stylistic corrections
This commit is contained in:
parent
4b582f0ae9
commit
014b8268cc
3
TODO
3
TODO
@ -927,8 +927,7 @@ o Network (net/, drivers/net)
|
||||
CONFIG_NET_NOINTS). This is really a very bad use of CPU
|
||||
resources; All of the network stack processing should be
|
||||
modified to use a work queue (and, all use of CONFIG_NET_NOINTS=n
|
||||
should be eliminated). This applies to almost all Ethernet
|
||||
drivers:
|
||||
should be eliminated). This applies to many Ethernet drivers:
|
||||
|
||||
ARCHITECTURE CONFIG_NET_NOINTS? ADDRESS FILTER SUPPORT?
|
||||
C5471 NO NO
|
||||
|
@ -111,13 +111,7 @@ struct kinetis_i2cdev_s
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static struct kinetis_i2cdev_s g_i2c_dev;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
* Private Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
static int kinetis_i2c_start(struct kinetis_i2cdev_s *priv);
|
||||
@ -133,10 +127,10 @@ static int kinetis_i2c_reset(FAR struct i2c_master_s *dev);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* I2C device operations
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
struct i2c_ops_s kinetis_i2c_ops =
|
||||
static const struct i2c_ops_s g_i2c_ops =
|
||||
{
|
||||
.transfer = kinetis_i2c_transfer
|
||||
#ifdef CONFIG_I2C_RESET
|
||||
@ -144,6 +138,12 @@ struct i2c_ops_s kinetis_i2c_ops =
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct kinetis_i2cdev_s g_i2c_dev;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: kinetis_i2c_setfrequency
|
||||
*
|
||||
@ -575,7 +575,6 @@ static int kinetis_i2c_interrupt(int irq, FAR void *context)
|
||||
/* Clear interrupt */
|
||||
|
||||
putreg8(I2C_S_IICIF, KINETIS_I2C0_S);
|
||||
|
||||
regval = getreg8(KINETIS_I2C0_C1);
|
||||
|
||||
/* TX mode */
|
||||
@ -862,7 +861,7 @@ struct i2c_master_s *kinetis_i2cbus_initialize(int port)
|
||||
|
||||
/* Install our operations */
|
||||
|
||||
priv->dev.ops = &kinetis_i2c_ops;
|
||||
priv->dev.ops = &g_i2c_ops;
|
||||
return &priv->dev;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user