Zepp-Hanzj opened a new pull request, #18997: URL: https://github.com/apache/nuttx/pull/18997
## Description Rename `rpmsg_device_destory()` to `rpmsg_device_destroy()` to fix a spelling error in the function name. ### Problem The function `rpmsg_device_destory()` has a typo — `destory` should be `destroy`. This is inconsistent with the correct spelling used in other similar functions in the codebase (e.g., `noterpmsg_device_destroy`, `uinput_rpmsg_device_destroy`, `syslog_rpmsg_device_destroy`, `uart_rpmsg_device_destroy`). ### Solution Rename the function across all files where it is defined, declared, and called. The function is declared in the private header `drivers/rpmsg/rpmsg.h` and used only within the `drivers/rpmsg/` subsystem, so there is no public API or ABI impact. ### Changes | File | Change | |------|--------| | `drivers/rpmsg/rpmsg.h` | Declaration: `destory` → `destroy` | | `drivers/rpmsg/rpmsg.c` | Definition: `destory` → `destroy` | | `drivers/rpmsg/rpmsg_virtio.c` | Call site: `destory` → `destroy` | | `drivers/rpmsg/rpmsg_router_edge.c` | Call site: `destory` → `destroy` | | `drivers/rpmsg/rpmsg_port.c` | Call site: `destory` → `destroy` | ### Verification ✅ **Checkpatch**: `./tools/checkpatch.sh -g HEAD` — All checks pass ✅ **Scope**: Function is private to `drivers/rpmsg/` — no external callers found via `grep -rn rpmsg_device_destory --include="*.c" --include="*.h"` outside the subsystem ✅ **Consistency**: All other `*_device_destroy()` functions in the rpmsg ecosystem use the correct spelling ### Signed-off-by hanzj <[email protected]> -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
