From patchwork Fri Dec 2 08:55:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 28791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp723143wrr; Fri, 2 Dec 2022 00:59:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4bTGwnD9Sin9tz1z94R05ookcQVEqsGH3YTUsB9kkZiYQhXfQt5hQtQpHUYH8YD+2rNVqU X-Received: by 2002:a17:906:fcac:b0:7ba:a9cb:8643 with SMTP id qw12-20020a170906fcac00b007baa9cb8643mr35342086ejb.298.1669971599458; Fri, 02 Dec 2022 00:59:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669971599; cv=none; d=google.com; s=arc-20160816; b=RqSwboa4gjiDjHy5UKYtW5CR+xr/2KbtzPYEHlStXA5Jhp7GaQyBDINSykKvgMdvy1 xH+Jd9UDYo0huk9rMO8j5v2ZQbl8rHrAQMYl9TTf0/z8gM3xy4V3mJiGM4yudr/gq9bX JSAwbYTgizyZ+Dbf9T6gZE4Jf/+QJvx75OE1aUSJm5gkBlZyDybVKdq12NcVTGhObJCu ALDVYaqzKnGGLaKzQ+T/4eF++5lv5yPFV6NAFImyoHrUhQIwE4mB+TZy0WGvRAHvrCgq LeOcA2g2sfQsbvtPb92WO3mSP0hnOSIDPrunLjnU3tVVAGRFIBA0UkkJU0ws9ZlUCxFz f6Ow== 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=S89n9QHiQI/y9x3/RBBeD2hc63bXZL5TZ/yxbLwZvtk=; b=bjvGShrB/vQgkhT840GcuhyL65GGq0jm2KEziscUjh6EiVopi4lpriukrSHpyCWCB/ 10GayM7oo4yk/QbDBhWXDygB2aqW4WGtN/6ZIDMPBIrPL3yLhSCaHBxLVWIX3jdmbcyy juQnrQKVKNPM7uR0Vb8cKZRzvjWEkSFb7GjnYk6KXIRqZzyoPilFHJK46meLUBwDSKby e2YmYHs2CZniBktsfAY+u6dMYvgKF6X5KfwNci3UoFFsuMVjIFDEbMoQy1T5U0GgZpVu 49kwTKIo138RmjC28wh1N7G885L/2pn5erGI2higBmFURi0+lMOLxTfyOdL3dGvqW5Jm BYpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=WHOc2Iwl; 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 a62-20020a509ec4000000b0046b84bb563bsi5163747edf.464.2022.12.02.00.59.35; Fri, 02 Dec 2022 00:59:59 -0800 (PST) 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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=WHOc2Iwl; 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 S232517AbiLBI4X (ORCPT + 99 others); Fri, 2 Dec 2022 03:56:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232707AbiLBI4E (ORCPT ); Fri, 2 Dec 2022 03:56:04 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2618BEE32 for ; Fri, 2 Dec 2022 00:56:00 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id ay27-20020a05600c1e1b00b003d070f4060bso3717749wmb.2 for ; Fri, 02 Dec 2022 00:56:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=S89n9QHiQI/y9x3/RBBeD2hc63bXZL5TZ/yxbLwZvtk=; b=WHOc2IwlJtP3msa5dp04MwOfIjoCyqf7msunV1drtI8gwRTxnLzQNGptkHrOMvarHA +bfJ/ZhseK9p5BKodxiYX0/5w9fp5lmwlSimZrs+7JHOAQgAEa46NWAFQue2/Q7iDBj1 oLzFPs5YXemMJCNwb+kafFV4BmzFM7jIclYUXnV9F4PsRpCvlHadsQGC3fVCk6s6zMVL zDYeGK/um5M8SVowqc1jXglRhbZm02r6/X7/raU1iUhI1Pt2ylWZIi+IiPw2oNM8uK7k FqgsaXOAybGN4/F8bbLX7xaC9nfdRzq2ozlZejdmvOoNEdfjBAVF1GDpP/Kok285J1Oc ufTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S89n9QHiQI/y9x3/RBBeD2hc63bXZL5TZ/yxbLwZvtk=; b=tcmPrVk0iOV3/eTYPH5XtkfbNkMGpQbhE6DHpSlUaAacC1k2cK8joej4cyADxhQTkn Eu+CaKiO5LBK74vHbQ4VlUreMp+szrrhd4flOVbcybpKQIP0MferVeBDFtCqjtYp4nlT WIWcwap4Pr1RBUoSeU1YIVBb+2bq6E3cDPVa7p8WxuVr0yf/tlCSP4CZLhBOepvRgGvC BbheoAvpS4JDnrhuJQikLUSkHmfNEf72PIgdUzQLNL0sIqcg6rwd4WLgwMqIwMtbTc1H JjCkg7XMUBE1wBoU4kYdKoh3+EzJ2ffSLKgcNUCnz5ez7UgeUXpAZq9uTaKVxw4QVmFq QekQ== X-Gm-Message-State: ANoB5pkm1gSvQV9rKn0uTMNYmBj9s4FXcb6Xg81fG2J4MsXkkgdY34FS J7zw2S6finru5IPGonzojb6wFg== X-Received: by 2002:a1c:f006:0:b0:3cf:7b68:631 with SMTP id a6-20020a1cf006000000b003cf7b680631mr56253232wmb.55.1669971359261; Fri, 02 Dec 2022 00:55:59 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:29a4:6f04:ddb1:1ed7]) by smtp.gmail.com with ESMTPSA id a13-20020adfed0d000000b0024219b1cb1bsm6527517wro.60.2022.12.02.00.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 00:55:58 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Jiri Slaby , Srinivas Kandagatla , Vinod Koul , Alex Elder , =?utf-8?q?Ilp?= =?utf-8?q?o_J=C3=A4rvinen?= Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, Bartosz Golaszewski , Konrad Dybcio Subject: [PATCH v5 02/14] tty: serial: qcom-geni-serial: remove unused symbols Date: Fri, 2 Dec 2022 09:55:42 +0100 Message-Id: <20221202085554.59637-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221202085554.59637-1-brgl@bgdev.pl> References: <20221202085554.59637-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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?1751092140173032234?= X-GMAIL-MSGID: =?utf-8?q?1751092140173032234?= From: Bartosz Golaszewski Drop all unused symbols from the driver. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- drivers/tty/serial/qcom_geni_serial.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 9f2212e7b5ec..7af5df6833c7 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -42,20 +42,11 @@ #define UART_TX_PAR_EN BIT(0) #define UART_CTS_MASK BIT(1) -/* SE_UART_TX_WORD_LEN */ -#define TX_WORD_LEN_MSK GENMASK(9, 0) - /* SE_UART_TX_STOP_BIT_LEN */ -#define TX_STOP_BIT_LEN_MSK GENMASK(23, 0) #define TX_STOP_BIT_LEN_1 0 -#define TX_STOP_BIT_LEN_1_5 1 #define TX_STOP_BIT_LEN_2 2 -/* SE_UART_TX_TRANS_LEN */ -#define TX_TRANS_LEN_MSK GENMASK(23, 0) - /* SE_UART_RX_TRANS_CFG */ -#define UART_RX_INS_STATUS_BIT BIT(2) #define UART_RX_PAR_EN BIT(3) /* SE_UART_RX_WORD_LEN */ @@ -66,12 +57,9 @@ /* SE_UART_TX_PARITY_CFG/RX_PARITY_CFG */ #define PAR_CALC_EN BIT(0) -#define PAR_MODE_MSK GENMASK(2, 1) -#define PAR_MODE_SHFT 1 #define PAR_EVEN 0x00 #define PAR_ODD 0x01 #define PAR_SPACE 0x10 -#define PAR_MARK 0x11 /* SE_UART_MANUAL_RFR register fields */ #define UART_MANUAL_RFR_EN BIT(31) @@ -80,11 +68,8 @@ /* UART M_CMD OP codes */ #define UART_START_TX 0x1 -#define UART_START_BREAK 0x4 -#define UART_STOP_BREAK 0x5 /* UART S_CMD OP codes */ #define UART_START_READ 0x1 -#define UART_PARAM 0x1 #define UART_OVERSAMPLING 32 #define STALE_TIMEOUT 16