ARM: s3c24xx: pass pointer to clk driver via platform data
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 6 Aug 2020 18:20:23 +0000 (20:20 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 19 Aug 2020 18:58:10 +0000 (20:58 +0200)
commitb84e23f5135103c45022b0e4a4ed2459d5398a7e
treeb41da5da053dc35944de8fec10c83468cbb13aa9
parent346f183cc1348cbf3814796afab0ea34475152a9
ARM: s3c24xx: pass pointer to clk driver via platform data

Passing pointers directly as platform data is fragile and undocumented.
Better to create a platform data structure which explicitly documents
what is passed to the driver.

Suggested-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20200806182059.2431-6-krzk@kernel.org
MAINTAINERS
arch/arm/mach-s3c24xx/common.c
drivers/clk/samsung/clk-s3c2410-dclk.c
include/linux/platform_data/clk-s3c2410.h [new file with mode: 0644]