mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 05:08:45 +00:00
[refactor] delete unused flag noun in device_register
This commit is contained in:
parent
66635f84f7
commit
50d130075c
74 changed files with 201 additions and 11419 deletions
|
@ -30,7 +30,7 @@ int main(void)
|
|||
|
||||
bflb_platform_init(0);
|
||||
|
||||
i2c_register(I2C0_INDEX, "i2c", DEVICE_OFLAG_RDWR);
|
||||
i2c_register(I2C0_INDEX, "i2c");
|
||||
struct device *i2c0 = device_find("i2c");
|
||||
|
||||
if (i2c0) {
|
||||
|
|
|
@ -30,7 +30,7 @@ int main(void)
|
|||
|
||||
bflb_platform_init(0);
|
||||
|
||||
i2c_register(I2C0_INDEX, "i2c", DEVICE_OFLAG_RDWR);
|
||||
i2c_register(I2C0_INDEX, "i2c");
|
||||
struct device *i2c0 = device_find("i2c");
|
||||
|
||||
if (i2c0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue