Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6071115ybi; Tue, 4 Jun 2019 18:13:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPus0Haq1wrqkjioF0RHLsJ64x5S1Wt2scfOHBiRtFRtJfuDohMuT8KWAKYHFLSioa0LZw X-Received: by 2002:aa7:8e50:: with SMTP id d16mr34960485pfr.65.1559697203915; Tue, 04 Jun 2019 18:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559697203; cv=none; d=google.com; s=arc-20160816; b=iTlKrGuHLQGcU8sCqnLXxnMFfzVrQeo/eUHQ7ytbY/ziQG/Nl3m4c0yioxAAlIrsdj YF1h1z3C7kgjo139EEcvVA38ULaeUY66DQT/8mFOb8Qs8BB2dAYLtB6V/9dB17wyMt9V fFvB9EHzYZjWeKqy0o5TZhPCAg+/HJojpCsAbLc+rbcYqvQUngXwDHEKLA13ZzzCF/XI H4vEz3BKUXfpyIbSfjYp0nayhLYFmC5cHLj5GSINFya4ySLepFrMTIpJb7NrhlDtaRqN 6XZosQwc8JoQPU/RWevW7Z9T2YcifUiCI3i5451N2M/T0JOC/AnFyrfD520KaGtxKuvU DdWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uYuZk3WfkaKX49xvAd+SIaFxKGOozQxDXCkeJBh9dxI=; b=ruFgNLZnbhN4AnoZOIN2G5ae2tlVHv+H7KHzO2SOl1odrCOcM440vw0X+eZUxt6jUx pEjfLaWwvZaBLv7YjIIaOHPe+XMBeVOFeGRekpqtCMz0cxv+kspYjXhgYzeTM0OKFiZe xqlnSUd2eCsmrknxKy3tAcV1z3lSJpOvuwTPZCMllovM4up8OQHEOwe+ydJpzUrWNxfS hUIfkHOTKVB+axG/UHzDyfBO6ldsyR+hzDbW+YCK9X6sokVoKaARcfedI7cE6gjKBfbF 0VodvUW7Mjqf00AzoUMzBR+NBW+7lmFo/dKkv/gfFS5GWG9IbhhVD9yTLcWpd2MeEXEc 0FiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="g9JKg/oN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si22749651plp.111.2019.06.04.18.13.07; Tue, 04 Jun 2019 18:13:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="g9JKg/oN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbfFEBKX (ORCPT + 99 others); Tue, 4 Jun 2019 21:10:23 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:39470 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbfFEBKJ (ORCPT ); Tue, 4 Jun 2019 21:10:09 -0400 Received: by mail-qk1-f193.google.com with SMTP id i125so4146407qkd.6 for ; Tue, 04 Jun 2019 18:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uYuZk3WfkaKX49xvAd+SIaFxKGOozQxDXCkeJBh9dxI=; b=g9JKg/oNEjc8gCZny9L+JKTZ8IXlkOb51oA5UCsAk79uHj9HxL0oJj2T093uVL7U3W tZaNJOL1EEnXV4E8dyhLzfNhkFSjmBojQG3rfhszbSwx9mFqXkbAjQBh+j4MewBbn8HD VbMUwl99PQ/FRT6A/sMFPO9v6vzSKa2DEDi1bHidQjB2cRAgQE9yvrMtx0BIkYBsm796 vD9qFJ3339QGhxRMCDVCLQYo0AEIljJOqawv29YvvpQMeSIZdDvW2uWPNcJLT01MZduy Tw+3DH+cPK5FlS8H4d9VovuS9XKhN1vAjbL9yTiTiGRduStKYceXbbvXqciOqY8LWyEG d7tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uYuZk3WfkaKX49xvAd+SIaFxKGOozQxDXCkeJBh9dxI=; b=QEDnZijeciCGX8j2bx2uZc6elBwcMq95IRWA5C61RObz6BtzDrg/FsRdtb1fITf7ka LCubVwksMbdmVr3v4vJ1Pdj1Cc1aTdCdho0DA/THB4suZHTOSBp3RxnSUkXk5CVw7w07 fdFCYXhTxBxayJLiYRiWLLFnZh6e1Esy+oQSVxxljWZULXzEzaxgPRhT8yh7MIhDVq5z tB1AUed/kAMMzzIHIH7ARujLEy2cki3RtIZjEmuvZ4vy8c+bYq84ONvgz6Eg3TJZrDD8 j2PPMlZm0KlTXJge6loVk1VOmxWM8397QYhZVN99Q517iZWPHRbp0fvsyP7b6OnqZ6EY qQeg== X-Gm-Message-State: APjAAAX9J8pIOgjvunxY15hB2VPu/MEn2/WNWdtB59cL1ayBKjEhE/gX gNhaLj11EdXHZ7optHeWP58= X-Received: by 2002:ae9:f20c:: with SMTP id m12mr29856938qkg.58.1559697008489; Tue, 04 Jun 2019 18:10:08 -0700 (PDT) Received: from arch-01.home (c-73-132-202-198.hsd1.md.comcast.net. [73.132.202.198]) by smtp.gmail.com with ESMTPSA id v41sm7169401qta.78.2019.06.04.18.10.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 18:10:08 -0700 (PDT) From: Geordan Neukum To: Greg Kroah-Hartman Cc: Geordan Neukum , Mao Wenan , Jeremy Sowden , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] staging: kpc2000: kpc_spi: remove unnecessary struct member chip_select Date: Wed, 5 Jun 2019 01:09:11 +0000 Message-Id: <1980fe831f6444a6bf47928bdc9e09c8fe3b6da1.1559696611.git.gneukum1@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The structure kp_spi_controller_state, defined in the kpc2000_spi driver, contains a member named chip_select which is never used after initialization. Therefore, it should be removed for simplicity's sake. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index 61296335313b..07b0327d8bef 100644 --- a/drivers/staging/kpc2000/kpc2000_spi.c +++ b/drivers/staging/kpc2000/kpc2000_spi.c @@ -109,7 +109,6 @@ struct kp_spi { struct kp_spi_controller_state { void __iomem *base; - unsigned char chip_select; s64 conf_cache; }; @@ -267,7 +266,6 @@ kp_spi_setup(struct spi_device *spidev) return -ENOMEM; } cs->base = kpspi->base; - cs->chip_select = spidev->chip_select; cs->conf_cache = -1; spidev->controller_state = cs; } -- 2.21.0