mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
clk: Introduce clk-provider.h to store Common Clock Framework's internals
This file now stores the dev_get_clk_ptr() wrapper on the dev_get_uclass_priv() function. Signed-off-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
committed by
Stefano Babic
parent
36bac0a193
commit
004c122941
16
include/linux/clk-provider.h
Normal file
16
include/linux/clk-provider.h
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 DENX Software Engineering
|
||||||
|
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
|
||||||
|
*
|
||||||
|
* Copyright (c) 2010-2011 Jeremy Kerr <jeremy.kerr@canonical.com>
|
||||||
|
* Copyright (C) 2011-2012 Linaro Ltd <mturquette@linaro.org>
|
||||||
|
*/
|
||||||
|
#ifndef __LINUX_CLK_PROVIDER_H
|
||||||
|
#define __LINUX_CLK_PROVIDER_H
|
||||||
|
|
||||||
|
static inline struct clk *dev_get_clk_ptr(struct udevice *dev)
|
||||||
|
{
|
||||||
|
return (struct clk *)dev_get_uclass_priv(dev);
|
||||||
|
}
|
||||||
|
#endif /* __LINUX_CLK_PROVIDER_H */
|
||||||
Reference in New Issue
Block a user