xiaoxiang781216 commented on code in PR #7472: URL: https://github.com/apache/incubator-nuttx/pull/7472#discussion_r1011965828
########## arch/arm/src/samd2l2/sam_i2c_master.c: ########## @@ -323,7 +358,16 @@ static const struct i2c_attr_s g_i2c3attr = .base = SAM_SERCOM3_BASE, }; -static struct sam_i2c_dev_s g_i2c3; +static struct sam_i2c_dev_s g_i2c3 = +{ + .dev = + { + .ops = &g_i2cops, + }, + .attr = &g_i2c3attr, Review Comment: yes ########## arch/arm/src/samd2l2/sam_i2c_master.c: ########## @@ -305,7 +331,16 @@ static const struct i2c_attr_s g_i2c2attr = .base = SAM_SERCOM2_BASE, }; -static struct sam_i2c_dev_s g_i2c2; +static struct sam_i2c_dev_s g_i2c2 = +{ + .dev = + { + .ops = &g_i2cops, + }, + .attr = &g_i2c2attr, Review Comment: yes ########## arch/arm/src/samd2l2/sam_i2c_master.c: ########## @@ -287,7 +304,16 @@ static const struct i2c_attr_s g_i2c1attr = .base = SAM_SERCOM1_BASE, }; -static struct sam_i2c_dev_s g_i2c1; +static struct sam_i2c_dev_s g_i2c1 = +{ + .dev = + { + .ops = &g_i2cops, + }, + .attr = &g_i2c1attr, Review Comment: yes ########## arch/arm/src/samd2l2/sam_i2c_master.c: ########## @@ -270,7 +278,16 @@ static const struct i2c_attr_s g_i2c0attr = .base = SAM_SERCOM0_BASE, }; -static struct sam_i2c_dev_s g_i2c0; +static struct sam_i2c_dev_s g_i2c0 = +{ + .dev = + { + .ops = &g_i2cops, + }, + .attr = &g_i2c0attr, Review Comment: yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org