Skip to content

Conversation

@henrikbrixandersen
Copy link
Member

Clarify the meaning of the meaning of minimum/maximum supported CAN bitrates.

@nordic-segl
Copy link
Contributor

I see commit body contains repetition but this is negligible.
"Clarify the meaning of the meaning of minimum/maximum supported CAN
bitrates."

Clarify the meaning of of minimum/maximum supported bitrates in the CAN
controller driver API.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
@henrikbrixandersen henrikbrixandersen force-pushed the can_get_bitrate_min_doxygen branch from ee65755 to dfbc070 Compare October 22, 2024 05:59
@henrikbrixandersen
Copy link
Member Author

I see commit body contains repetition but this is negligible. "Clarify the meaning of the meaning of minimum/maximum supported CAN bitrates."

Thanks, fixed.

@henrikbrixandersen henrikbrixandersen added this to the v4.0.0 milestone Oct 22, 2024
*
* @deprecated Use @a can_get_bitrate_min() instead.
*
* @note The minimum bitrate represents limitations of the CAN controller/transceiver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's laudable to update the docs for the deprecated function -- it really is! -- but in this instance I wonder if it's not counter productive. Keeping the docs of the deprecated method as lean as possible helps make the @deprecated mention less buried in surrounding text.
I think it's acceptable to let the docs of a deprecated method go stale since, after all, any new user is encouraged to look for the replacement. And to some extent I think it's ok that any existing user in need to look back at the docs to understand/clarify the behavior would basically see the docs as they were when it was decided to deprecate the method.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for reviewing. I opted to keep the documentation in sync between the deprecated functions and their replacement to convey that there are no functional changes between the two.

@aescolar aescolar merged commit e7db0f8 into zephyrproject-rtos:main Oct 23, 2024
23 checks passed
@henrikbrixandersen henrikbrixandersen deleted the can_get_bitrate_min_doxygen branch November 4, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants