Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.

This commit is contained in:
Gregory Nutt
2016-01-30 08:35:50 -06:00
parent 2591281375
commit 1615a5ead0
21 changed files with 41 additions and 40 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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];