1*22823157STomer Maimon /* SPDX-License-Identifier: GPL-2.0 */ 2*22823157STomer Maimon #ifndef __SOC_NPCM8XX_CLOCK_H 3*22823157STomer Maimon #define __SOC_NPCM8XX_CLOCK_H 4*22823157STomer Maimon 5*22823157STomer Maimon #include <linux/auxiliary_bus.h> 6*22823157STomer Maimon #include <linux/container_of.h> 7*22823157STomer Maimon 8*22823157STomer Maimon struct npcm_clock_adev { 9*22823157STomer Maimon void __iomem *base; 10*22823157STomer Maimon struct auxiliary_device adev; 11*22823157STomer Maimon }; 12*22823157STomer Maimon to_npcm_clock_adev(struct auxiliary_device * _adev)13*22823157STomer Maimonstatic inline struct npcm_clock_adev *to_npcm_clock_adev(struct auxiliary_device *_adev) 14*22823157STomer Maimon { 15*22823157STomer Maimon return container_of(_adev, struct npcm_clock_adev, adev); 16*22823157STomer Maimon } 17*22823157STomer Maimon 18*22823157STomer Maimon #endif 19