From patchwork Thu Jun 1 05:45:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp74240vqr; Wed, 31 May 2023 22:56:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eqayBTSvMxXbpY3pswzNEUqy/FNVmpnaHAQ7f2v53zceZSX2UwLxlC52FClnZ1fdEsvZR X-Received: by 2002:a9d:4d0e:0:b0:694:7e8f:2547 with SMTP id n14-20020a9d4d0e000000b006947e8f2547mr4826325otf.22.1685599001931; Wed, 31 May 2023 22:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685599001; cv=none; d=google.com; s=arc-20160816; b=lmTnQXsf5bPwrIHE1v+QNYuKvQJW4bIU3nOdevbsjdNgzq8plFCjaFajFWMMSlNWBj txwVj2VIs1Dsy/wM1U80FbZPwLdOQXcatBy5XIKiyLj3ffxI7eIftwzv4rgfA7qAHBJu o5CFxf1VtdO/ogj+ciitHcFfefAXlnjEyWQ6Ob/CTD5gkqDrhTEghOt3E5rHQzcD+yxv kuf+P9I70ek7iAZFhYpfqs0tLFtC/fXS89QIeK+w/kaGCBL1AHLLR6g/cPPAzRVrLbHf jxEDOWtjzFKqFXdFqPpAX5WJI3N/hAxL+8r5nABpOU90QN0nAcYD7CSNNgNtxWqgVWdz OQ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xWUpGUw0TWo8/gQXUxgOP54SbLDyy19Iv6LZ2KMAncY=; b=AWc4wdhcBK7dfEtuSkZv42TKdY6WwRm9lxlu6myGqb3OYSaEijDdrXZ7qrr7+4jyKf oJAR3LNknv9NlD4tCyN8Sveqd7e3VrO2dR7UupD2ue6NPYPWtNJsHDk4TIjOJHNUJtGg k+L4N8nyg57x/nv/PNf7ibXXsvFDBYd6DnjAvmTG75RZbJXqg8+LpvxFrnOYOlfseA2P Zg851DD8/1b6/J9WiNd8WY+2dL9rkE0hlEjX837PeFJCA6Yj9qf6avvrYKw8XhWLmUHU P3ZSHGynmucLpPNiQILo3+YmUSMLGhm8VMHbX35RLXHpY1ET3UddJCH+sCcLJHA8GSNJ TKMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=nAZy3XT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a28-20020aa795bc000000b0064d2c1fb45dsi4844468pfk.154.2023.05.31.22.56.29; Wed, 31 May 2023 22:56:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=nAZy3XT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231641AbjFAFsg (ORCPT + 99 others); Thu, 1 Jun 2023 01:48:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbjFAFrl (ORCPT ); Thu, 1 Jun 2023 01:47:41 -0400 Received: from forward102a.mail.yandex.net (forward102a.mail.yandex.net [IPv6:2a02:6b8:c0e:500:1:45:d181:d102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CFA513D for ; Wed, 31 May 2023 22:46:55 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward102a.mail.yandex.net (Yandex) with ESMTP id 6483046C78; Thu, 1 Jun 2023 08:46:41 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-i0I2YxhM; Thu, 01 Jun 2023 08:46:41 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598401; bh=xWUpGUw0TWo8/gQXUxgOP54SbLDyy19Iv6LZ2KMAncY=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=nAZy3XT7AKxpO19wr9RBXBPrbwqp/UXBJF8S47LspHqwPOQn+Sfe9NkxWN683We6e YjNctgvU8gFUXLZs6IAFRwS1ipxIkaWDeP8CIrxD9w+8e4fSwpZp1TTrJyFtjcWsqB Jg6ngcYB5lDwFTQ4b0BiKu3BVwllOyzpgoOWeHrU= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Nikita Shubin Cc: Michael Peters , Kris Bahnsen , linux-kernel@vger.kernel.org Subject: [PATCH v1 40/43] ARM: ep93xx: soc: drop defines Date: Thu, 1 Jun 2023 08:45:45 +0300 Message-Id: <20230601054549.10843-22-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764051594002009906?= X-GMAIL-MSGID: =?utf-8?q?1767478659028882687?= Remove unnecessary defines, as we dropped board files. Signed-off-by: Nikita Shubin --- include/linux/platform_data/eth-ep93xx.h | 10 ------ include/linux/platform_data/keypad-ep93xx.h | 32 ----------------- include/linux/soc/cirrus/ep93xx.h | 38 ++++++++------------- 3 files changed, 14 insertions(+), 66 deletions(-) delete mode 100644 include/linux/platform_data/eth-ep93xx.h delete mode 100644 include/linux/platform_data/keypad-ep93xx.h diff --git a/include/linux/platform_data/eth-ep93xx.h b/include/linux/platform_data/eth-ep93xx.h deleted file mode 100644 index 8eef637a804d..000000000000 --- a/include/linux/platform_data/eth-ep93xx.h +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _LINUX_PLATFORM_DATA_ETH_EP93XX -#define _LINUX_PLATFORM_DATA_ETH_EP93XX - -struct ep93xx_eth_data { - unsigned char dev_addr[6]; - unsigned char phy_id; -}; - -#endif diff --git a/include/linux/platform_data/keypad-ep93xx.h b/include/linux/platform_data/keypad-ep93xx.h deleted file mode 100644 index 3054fced8509..000000000000 --- a/include/linux/platform_data/keypad-ep93xx.h +++ /dev/null @@ -1,32 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __KEYPAD_EP93XX_H -#define __KEYPAD_EP93XX_H - -struct matrix_keymap_data; - -/* flags for the ep93xx_keypad driver */ -#define EP93XX_KEYPAD_DISABLE_3_KEY (1<<0) /* disable 3-key reset */ -#define EP93XX_KEYPAD_DIAG_MODE (1<<1) /* diagnostic mode */ -#define EP93XX_KEYPAD_BACK_DRIVE (1<<2) /* back driving mode */ -#define EP93XX_KEYPAD_TEST_MODE (1<<3) /* scan only column 0 */ -#define EP93XX_KEYPAD_AUTOREPEAT (1<<4) /* enable key autorepeat */ - -/** - * struct ep93xx_keypad_platform_data - platform specific device structure - * @keymap_data: pointer to &matrix_keymap_data - * @debounce: debounce start count; terminal count is 0xff - * @prescale: row/column counter pre-scaler load value - * @flags: see above - */ -struct ep93xx_keypad_platform_data { - struct matrix_keymap_data *keymap_data; - unsigned int debounce; - unsigned int prescale; - unsigned int flags; - unsigned int clk_rate; -}; - -#define EP93XX_MATRIX_ROWS (8) -#define EP93XX_MATRIX_COLS (8) - -#endif /* __KEYPAD_EP93XX_H */ diff --git a/include/linux/soc/cirrus/ep93xx.h b/include/linux/soc/cirrus/ep93xx.h index 37c0e17a45c0..2acce55692a4 100644 --- a/include/linux/soc/cirrus/ep93xx.h +++ b/include/linux/soc/cirrus/ep93xx.h @@ -2,44 +2,34 @@ #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 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