lkml.org 
[lkml]   [2015]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RESEND PATCH 1/3] clk: si5351: Constify clock names and struct regmap_config
From
On Fri, Mar 20, 2015 at 2:34 PM, Krzysztof Kozlowski
<k.kozlowski@samsung.com> wrote:
> The regmap_config struct may be const because it is not modified by the
> driver and regmap_init() accepts pointer to const.
>
> Replace doubled const in the arrays of clock names with proper const
> pointer to const data. This fixes the warnings:
>
> drivers/clk/clk-si5351.c:71:25: warning: duplicate const
> drivers/clk/clk-si5351.c:74:25: warning: duplicate const
> drivers/clk/clk-si5351.c:77:25: warning: duplicate const
> drivers/clk/clk-si5351.c:80:25: warning: duplicate const
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> ---
> drivers/clk/clk-si5351.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>

--
Thanks.
-- Max


\
 
 \ /
  Last update: 2015-03-21 22:41    [W:0.189 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site