From 703725ad74ab3f3e71b8d136a66bf8f9fa5a421e Mon Sep 17 00:00:00 2001 From: Nikita Shubin Date: Wed, 19 Apr 2023 17:15:46 +0300 Subject: [PATCH] ARM: ep93xx: soc: drop defines Remove unnecessary defines, as we dropped board files. Signed-off-by: Nikita Shubin --- include/linux/soc/cirrus/ep93xx.h | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/include/linux/soc/cirrus/ep93xx.h b/include/linux/soc/cirrus/ep93xx.h index 37c0e17a45c05..393ec0570010e 100644 --- a/include/linux/soc/cirrus/ep93xx.h +++ b/include/linux/soc/cirrus/ep93xx.h @@ -2,44 +2,27 @@ #ifndef _SOC_EP93XX_H #define _SOC_EP93XX_H -struct platform_device; - #define EP93XX_CHIP_REV_D0 3 #define EP93XX_CHIP_REV_D1 4 #define EP93XX_CHIP_REV_E0 5 #define EP93XX_CHIP_REV_E1 6 #define EP93XX_CHIP_REV_E2 7 -#if defined(CONFIG_EP93XX_SOC_COMMON) -int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); -void ep93xx_pwm_release_gpio(struct platform_device *pdev); -int ep93xx_ide_acquire_gpio(struct platform_device *pdev); -void ep93xx_ide_release_gpio(struct platform_device *pdev); -int ep93xx_keypad_acquire_gpio(struct platform_device *pdev); -void ep93xx_keypad_release_gpio(struct platform_device *pdev); -int ep93xx_i2s_acquire(void); -void ep93xx_i2s_release(void); -#else -static inline int ep93xx_pwm_acquire_gpio(struct platform_device *pdev) { return 0; } -static inline void ep93xx_pwm_release_gpio(struct platform_device *pdev) {} -static inline int ep93xx_ide_acquire_gpio(struct platform_device *pdev) { return 0; } -static inline void ep93xx_ide_release_gpio(struct platform_device *pdev) {} -static inline int ep93xx_keypad_acquire_gpio(struct platform_device *pdev) { return 0; } -static inline void ep93xx_keypad_release_gpio(struct platform_device *pdev) {} -static inline int ep93xx_i2s_acquire(void) { return 0; } -static inline void ep93xx_i2s_release(void) {} -#endif - #if defined(CONFIG_ARCH_EP93XX) unsigned int ep93xx_chip_revision(void); -#if defined(CONFIG_EP93XX_SOC) void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits); void ep93xx_syscon_swlocked_write(unsigned int val, unsigned int reg); void ep93xx_swlocked_update_bits(unsigned int reg, unsigned int mask, unsigned int val); -#endif #else static inline unsigned int ep93xx_chip_revision(void) { return 0; } +static inline void void ep93xx_devcfg_set_clear(unsigned int set_bits, + unsigned int clear_bits) { return 0; } +void ep93xx_syscon_swlocked_write(unsigned int val, unsigned int reg) + { return 0; } +void ep93xx_swlocked_update_bits(unsigned int reg, + unsigned int mask, unsigned int val) + { return 0; } #endif #endif -- 2.30.2