mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 08:49:45 +00:00
![Krzysztof Kozlowski](/assets/img/avatar_default.png)
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
19 lines
518 B
C
19 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_ */
|
|
|