1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * Copyright (c) 2017 Chen-Yu Tsai. All rights 2 * Copyright (c) 2017 Chen-Yu Tsai. All rights reserved. >> 3 * >> 4 * This software is licensed under the terms of the GNU General Public >> 5 * License version 2, as published by the Free Software Foundation, and >> 6 * may be copied, distributed, and modified under those terms. >> 7 * >> 8 * This program is distributed in the hope that it will be useful, >> 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 11 * GNU General Public License for more details. 4 */ 12 */ 5 13 6 #ifndef _LINUX_CLK_SUNXI_NG_H_ 14 #ifndef _LINUX_CLK_SUNXI_NG_H_ 7 #define _LINUX_CLK_SUNXI_NG_H_ 15 #define _LINUX_CLK_SUNXI_NG_H_ 8 16 >> 17 #include <linux/errno.h> >> 18 >> 19 #ifdef CONFIG_SUNXI_CCU 9 int sunxi_ccu_set_mmc_timing_mode(struct clk * 20 int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, bool new_mode); 10 int sunxi_ccu_get_mmc_timing_mode(struct clk * 21 int sunxi_ccu_get_mmc_timing_mode(struct clk *clk); >> 22 #else >> 23 static inline int sunxi_ccu_set_mmc_timing_mode(struct clk *clk, >> 24 bool new_mode) >> 25 { >> 26 return -ENOTSUPP; >> 27 } 11 28 12 int sun6i_rtc_ccu_probe(struct device *dev, vo !! 29 static inline int sunxi_ccu_get_mmc_timing_mode(struct clk *clk) >> 30 { >> 31 return -ENOTSUPP; >> 32 } >> 33 #endif 13 34 14 #endif 35 #endif 15 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.