-
Notifications
You must be signed in to change notification settings - Fork 8k
SPI: Fix deprecated API usage leftovers from #87427 #96859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The delay parameter was removed from this macro, so don't pass it. Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Commit a60f93d removed the delay parameter from various SPI macros, but aimed to retain a clean migration path by throwing a deprecation warning when the parameter is still passed. However, the commit failed to have this feature included in the SPI_DT_IODEV_DEFINE macro. This commit should fix the issue. Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sorry, it was taking forever to get reviews and stuff kept merging in the meantime, i couldnt keep up. looks like this driver is newly added yesterday right before the spi PR was merged
This macro doesn't accept a delay parameter anymore (well, it does, but it's deprecated and will trigger build warnings). Just remove it from the places that were still passing it. Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
@jhedberg it is good now. |
|
#87427 caused some CI failures in main due some drivers still using the SPI macros in a deprecated way, and actually
SPI_DT_IODEV_DEFINE()
not having the deprecation warning support. This PR tries to address both issues.