]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Constify struct clk_bulk_data * where possible
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 17 Jul 2019 14:56:51 +0000 (07:56 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 8 Aug 2019 04:56:04 +0000 (21:56 -0700)
commit0513e610dfa4ab66c5c03c462c84429e3fb3bde9
tree717742a81c827540aa2dc9ba62ef24a5835b1440
parent3946fc9291da929ed6836ab79a3b87c34d142954
clk: Constify struct clk_bulk_data * where possible

The following functions:

    - clk_bulk_enable()
    - clk_bulk_prepare()
    - clk_bulk_disable()
    - clk_bulk_unprepare()

already expect const clk_bulk_data * as a second parameter, however
their no-op version have mismatching prototypes that don't. Fix that.

While at it, constify the second argument of clk_bulk_prepare_enable()
and clk_bulk_disable_unprepare(), since the functions they are
comprised of already accept const clk_bulk_data *.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Chris Healy <cphealy@gmail.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Link: https://lkml.kernel.org/r/20190717145651.17250-1-andrew.smirnov@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
include/linux/clk.h