From: Krzysztof Kozlowski <k.kozlowski@samsung.com>
To: Andi Shyti <andi.shyti@samsung.com>, linux-samsung-soc@vger.kernel.org
Cc: Sangbeom Kim <sbkim73@samsung.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
Andi Shyti <andi@etezian.org>,
Yadwinder Singh Brar <yadi.brar01@gmail.com>
Subject: Re: [PATCH v2 2/3] clk: s2mps11: merge two for loop in one
Date: Wed, 20 Jan 2016 08:38:53 +0900 [thread overview]
Message-ID: <569EC90D.9040409@samsung.com> (raw)
In-Reply-To: <1453193552-4761-3-git-send-email-andi.shyti@samsung.com>
On 19.01.2016 17:52, Andi Shyti wrote:
> the driver already loops once, there is no reason to loop again
/s/the/The/
> for a different purpose. Merge the second loop into the first.
>
> Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
> ---
> drivers/clk/clk-s2mps11.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c
> index 22d4df2..cae92fc 100644
> --- a/drivers/clk/clk-s2mps11.c
> +++ b/drivers/clk/clk-s2mps11.c
> @@ -202,12 +202,6 @@ static int s2mps11_clk_probe(struct platform_device *pdev)
> ret = -ENOMEM;
> goto err_reg;
> }
> - }
> -
> - for (i = 0; i < S2MPS11_CLKS_NUM; i++) {
> - /* Skip clocks not present on S2MPS14 */
> - if (i == S2MPS11_CLK_CP && hwid == S2MPS14X)
You changed this line in patch 1/3 - meaningless. This is a indication
that this patch should go before 1st.
BR,
Krzysztof
> - continue;
> clk_table[i] = s2mps11_clks[i].clk;
> }
>
>
next prev parent reply other threads:[~2016-01-19 23:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-19 8:52 [PATCH v2 0/3] refactoring on the s2mps11 device driver Andi Shyti
2016-01-19 8:52 ` [PATCH v2 1/3] clk: s2mps11: allocate only one structure for clock init Andi Shyti
2016-01-19 23:35 ` Krzysztof Kozlowski
2016-01-19 8:52 ` [PATCH v2 2/3] clk: s2mps11: merge two for loop in one Andi Shyti
2016-01-19 23:38 ` Krzysztof Kozlowski [this message]
2016-01-19 8:52 ` [PATCH v2 3/3] clk: s2mps11: remove redundant code Andi Shyti
2016-01-19 23:42 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=569EC90D.9040409@samsung.com \
--to=k.kozlowski@samsung.com \
--cc=andi.shyti@samsung.com \
--cc=andi@etezian.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sbkim73@samsung.com \
--cc=sboyd@codeaurora.org \
--cc=yadi.brar01@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox