提交 cb1654de 编写于 作者: B Bernard Xiong

[DeviceDriver] Fix device name issue in pin_device.

上级 80eedb89
...@@ -93,7 +93,7 @@ int rt_device_pin_register(const char *name, const struct rt_pin_ops *ops, void ...@@ -93,7 +93,7 @@ int rt_device_pin_register(const char *name, const struct rt_pin_ops *ops, void
_hw_pin.parent.user_data = user_data; _hw_pin.parent.user_data = user_data;
/* register a character device */ /* register a character device */
rt_device_register(&_hw_pin.parent, "pin", RT_DEVICE_FLAG_RDWR); rt_device_register(&_hw_pin.parent, name, RT_DEVICE_FLAG_RDWR);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册