From: Shengjiu Wang <shengjiu.wang@gmail.com> Date: 2020-06-23 08:32:16
On Tue, Jun 23, 2020 at 3:38 PM Markus Elfring [off-list ref] wrote:
quoted
In-Reply-To: [off-list ref]
I guess that it should be sufficient to specify such a field once
for the header information.
seems it's caused by my "git format-patch" command, I will update
it, hope it is better next time.
quoted
Because clk_prepare_enable and clk_disable_unprepare should
check input clock parameter is NULL or not internally,
I find this change description unclear.
clk_prepare_enable and clk_disable_unprepare check the input
clock parameter in the beginning of the function, if the parameter
is NULL, clk_prepare_enable and clk_disable_unprepare will
return immediately.
So Don't need to check input clock parameters before calling clk
API.
Do you think this commit message is better?
best regards
wang shengjiu
From: Markus Elfring <hidden> Date: 2020-06-23 08:56:05
clk_prepare_enable and clk_disable_unprepare check the input
clock parameter in the beginning of the function,
These functions call further functions which perform null pointer checks.
if the parameter
is NULL, clk_prepare_enable and clk_disable_unprepare will
return immediately.
The interpretation of these function implementations seems to be reasonable.
Would you like to achieve any improvements for the corresponding software documentation?
So Don't need to check input clock parameters before calling clk API.
What do you find imperative in this wording?
Another wording alternative:
Thus omit extra null pointer checks before four function calls.
Regards,
Markus
From: Shengjiu Wang <shengjiu.wang@gmail.com> Date: 2020-06-23 11:36:50
On Tue, Jun 23, 2020 at 4:55 PM Markus Elfring [off-list ref] wrote:
quoted
clk_prepare_enable and clk_disable_unprepare check the input
clock parameter in the beginning of the function,
These functions call further functions which perform null pointer checks.
quoted
if the parameter
is NULL, clk_prepare_enable and clk_disable_unprepare will
return immediately.
The interpretation of these function implementations seems to be reasonable.
Would you like to achieve any improvements for the corresponding software documentation?
Which document do you mean?
quoted
So Don't need to check input clock parameters before calling clk API.
What do you find imperative in this wording?
Another wording alternative:
Thus omit extra null pointer checks before four function calls.
Regards,
Markus
From: Markus Elfring <hidden> Date: 2020-06-23 12:45:34
quoted
quoted
if the parameter
is NULL, clk_prepare_enable and clk_disable_unprepare will
return immediately.
The interpretation of these function implementations seems to be reasonable.
Would you like to achieve any improvements for the corresponding software documentation?