alistair23-linux/include/linux/platform_data/clk-s3c2410.h
Krzysztof Kozlowski b84e23f513 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
2020-08-19 20:58:10 +02:00

20 lines
518 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 Krzysztof Kozlowski <krzk@kernel.org>
*/
#ifndef __LINUX_PLATFORM_DATA_CLK_S3C2410_H_
#define __LINUX_PLATFORM_DATA_CLK_S3C2410_H_
/**
* struct s3c2410_clk_platform_data - platform data for S3C2410 clock driver
*
* @modify_misccr: Function to modify the MISCCR and return the new value
*/
struct s3c2410_clk_platform_data {
unsigned int (*modify_misccr)(unsigned int clr, unsigned int chg);
};
#endif /* __LINUX_PLATFORM_DATA_CLK_S3C2410_H_ */