mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
|
||||
int sam_at24config(void)
|
||||
{
|
||||
struct i2c_dev_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
struct mtd_dev_s *at24;
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ int sam_bringup(void)
|
||||
FAR struct mtd_dev_s *mtd;
|
||||
#endif
|
||||
#if defined(HAVE_RTC_DSXXXX) || defined(HAVE_RTC_PCF85263)
|
||||
FAR struct i2c_dev_s *i2c;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
#endif
|
||||
#if defined(HAVE_S25FL1_CHARDEV) || defined(HAVE_PROGMEM_CHARDEV)
|
||||
char blockdev[18];
|
||||
|
||||
@@ -158,7 +158,7 @@ void weak_function sam_netinitialize(void)
|
||||
#ifdef HAVE_MACADDR
|
||||
int sam_emac0_setmac(void)
|
||||
{
|
||||
struct i2c_dev_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
struct mtd_dev_s *at24;
|
||||
uint8_t mac[6];
|
||||
ssize_t nread;
|
||||
|
||||
@@ -237,7 +237,7 @@ static int mxt_interrupt(int irq, FAR void *context)
|
||||
|
||||
int board_tsc_setup(int minor)
|
||||
{
|
||||
FAR struct i2c_dev_s *i2c;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
static bool initialized = false;
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ int sam_wm8904_initialize(int minor)
|
||||
{
|
||||
FAR struct audio_lowerhalf_s *wm8904;
|
||||
FAR struct audio_lowerhalf_s *pcm;
|
||||
FAR struct i2c_dev_s *i2c;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
FAR struct i2s_dev_s *i2s;
|
||||
static bool initialized = false;
|
||||
char devname[12];
|
||||
|
||||
Reference in New Issue
Block a user