From patchwork Tue Nov 22 10:21:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 24248 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2118595wrr; Tue, 22 Nov 2022 02:23:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4u3n9C1wa2Oc+Vr8T97rgtL5RVaudpuXMiKDG5D311dwRaT67/ZGDROeWQEcOHYUr9uDTk X-Received: by 2002:a17:907:986c:b0:7a0:b505:e8f9 with SMTP id ko12-20020a170907986c00b007a0b505e8f9mr8448303ejc.216.1669112628757; Tue, 22 Nov 2022 02:23:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112628; cv=none; d=google.com; s=arc-20160816; b=LdIQFMSEZBotlhswYdY295sGPe3nGg05vRdvkuB8vT+KAKt65qcH9tc3jVXdY2UhBT ry3xqZJ/SWJ+Qs13d8l9zQmRxJKWHwLE9c1hy+kztMI65JYxkunNAUTR+FLGjY9YFkyI o0vihMD5ai6m38kzSq8bQbAuhU5nuGGY+jOWlPFGazXiItsd2eHbr7DwaZfiiSiwUlm7 GGkOh8VW3L0B5ePxOFXDZi/GwgQize+i3SLIdK7ICekyeBz1TVr7CzMaN6g0mwxY+1fB 9it5PIBcGt3uHxytGC6NauSdFVUSvIOMBy1/Rqq/WTD/GFiy15bvg7zcNamMH0FvhfAM +mBw== 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=x+8McVhjGHxIdSNqZoYGTITmU1Q7ePsDkQfqTZcQcL5eqQwIpaOL65tflTPHOCeUzT YCfw8mHctFIklal3qbSvnR04X9j6JR93zXS4c3u6NzAQCr4uFzKfHg6j/PRc/g38afIc DLymCctbAxyQJCWdBD4ESgGt3LbENHqBWRK25HbnNU1/YK+ZrW5qmpAcY5VwRXwpAOCQ VVV4N1etyreRE1co6Aew9jpTCqXlpLUDHYOR1XaT74sM6BUPHg77S+CrThwOj1gaUJRo 2VI7Z4V7oGbPcI52cJazvAZCU+g7C5ACy5lBnFZ3JmxEElFuZVyp0nKlN1dSXqDSUmOf AW0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="lXri/kjk"; 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 og17-20020a1709071dd100b007a9e6f0f82fsi354235ejc.516.2022.11.22.02.23.25; Tue, 22 Nov 2022 02:23:48 -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="lXri/kjk"; 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 S233473AbiKVKW2 (ORCPT + 99 others); Tue, 22 Nov 2022 05:22:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233016AbiKVKVw (ORCPT ); Tue, 22 Nov 2022 05:21:52 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4968C1E705 for ; Tue, 22 Nov 2022 02:21:44 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id bs21so23993234wrb.4 for ; Tue, 22 Nov 2022 02:21:44 -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=lXri/kjkjF6wgMkUC9670NWTNkvUagyJHjO/mp/WQk9YIFgBxvqgeKuTRyPtSwv4Ys 0szCZxbswm8NB260ozpnUy5hd4bw0SwWXRuMyRpv9+Z+IUAGnw0oDT2tCAvXZWihBSUd 3dH/qKcJm9mNyi5V5uhQw1B2Io4JszwFJA934peEDCI7VUOGCjp735xlfETSwowadnC6 DPCPzzA0U7P0nQIVUfBmjCJnFYl6145znTct8ToidcomhW/VQR+1J9R+GnIuSmT38urb mEbloh9iU4FT3uTLqf2i97w2jpnakU2HJv9w7vXSIkIgfbrNmLyhA1WkDHS0YtEL4PKU f5Gg== 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=fg+cxSqSwTaJPrb6LUxFBFznZa+2nukO4yhBK6fZdLjI5gzlCZQe0H3uT6n7FEKgcx UMCEGz13s9vsvVBGihX4jMfxwxUWFsxzbrQuS/ZUlab/foPlVQvtXeFPmf9tIDG9JWMS YX7ivzaIy8eddQ+TkGJWzBcNSlc8xakX+N37GQsJNnzXrZ+2YzR2lQYjI27RrLmQzp22 G6a9YoF4aR5duFkmdcTvJp+zYvvCuYbFuSBm9vsxKwuw/9hmkvsDt0ppY28nAuLsMvSX qMSAB7VlNpZ1d+Hhdxi5p9FqBjUAeK79vn2JTRsBXHhpfh7f69SmOQqFrSl1SEVAFXsD Kitw== X-Gm-Message-State: ANoB5pk6hF/q3YUnyc4QXMxjsU9WGQ5qQrTqDL6jO4WZFR0THZumBZsO /Lj/aUfXhuA9f3T3AZ01bDSEBA== X-Received: by 2002:adf:cd82:0:b0:238:b29e:4919 with SMTP id q2-20020adfcd82000000b00238b29e4919mr13769717wrj.583.1669112502874; Tue, 22 Nov 2022 02:21:42 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e011:9e81:66f1:3415]) by smtp.gmail.com with ESMTPSA id o3-20020a5d4083000000b002366e8eee11sm13432873wrp.101.2022.11.22.02.21.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 02:21:42 -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 v2 02/15] tty: serial: qcom-geni-serial: remove unused symbols Date: Tue, 22 Nov 2022 11:21:12 +0100 Message-Id: <20221122102125.142075-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221122102125.142075-1-brgl@bgdev.pl> References: <20221122102125.142075-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=unavailable 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?1750191443861427607?= X-GMAIL-MSGID: =?utf-8?q?1750191443861427607?= 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