We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80eedb8 commit cb1654dCopy full SHA for cb1654d
components/drivers/misc/pin.c
@@ -93,7 +93,7 @@ int rt_device_pin_register(const char *name, const struct rt_pin_ops *ops, void
93
_hw_pin.parent.user_data = user_data;
94
95
/* register a character device */
96
- rt_device_register(&_hw_pin.parent, "pin", RT_DEVICE_FLAG_RDWR);
+ rt_device_register(&_hw_pin.parent, name, RT_DEVICE_FLAG_RDWR);
97
98
return 0;
99
}
0 commit comments