mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 05:26:07 +00:00
19 lines
407 B
C
19 lines
407 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
#ifndef __SOC_NPCM8XX_CLOCK_H
|
||
|
#define __SOC_NPCM8XX_CLOCK_H
|
||
|
|
||
|
#include <linux/auxiliary_bus.h>
|
||
|
#include <linux/container_of.h>
|
||
|
|
||
|
struct npcm_clock_adev {
|
||
|
void __iomem *base;
|
||
|
struct auxiliary_device adev;
|
||
|
};
|
||
|
|
||
|
static inline struct npcm_clock_adev *to_npcm_clock_adev(struct auxiliary_device *_adev)
|
||
|
{
|
||
|
return container_of(_adev, struct npcm_clock_adev, adev);
|
||
|
}
|
||
|
|
||
|
#endif
|