Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2199549ybi; Sat, 25 May 2019 18:20:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5OXQBroBEMJT0ld0QV0czu+ga2C6e4irVJy7R3mCCOYTSekDG6pKkXSb9V3EPXSnGb2Rf X-Received: by 2002:a62:1a0f:: with SMTP id a15mr105845752pfa.111.1558833654218; Sat, 25 May 2019 18:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558833654; cv=none; d=google.com; s=arc-20160816; b=srUDu1BO1DCryNijEzKKinqwVw3rkotZDczKpP6J4UKjesO8P4Rh1yZPOdis6ihRTI KvMPPRtS70HtmqSgZmWtRWkDaWsKL9R3xolNNeAfplp6WOa3vndstw6PN+w2eX7+bpzc FPF6T/ehij1JjVBF0EfbSwtihrU4e3Je3L76oDuiV1xSllT9pfeKogGNx8i+MSJeii0/ 2fbhutBdkiKa0xo0BAiKI6XGkFyfQC/pGWNaSQPyzivC9oIDlVU02/irvxFKa1mpfZim KUH3Ohuoi1hOx+n98XY3mUq0TTXg3IbEy/F7huRQYwSrjc3javCLQVg43um4X0w/Y3NY lhog== 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=b3q0HmTjK6ahA4s0OOAEIvrRZJfHHkbeVitRycuPpus=; b=lU8qAvhEiFmXYn1NvQTP54RMCtuw1wzt3U/kT0POyqKeLXwpyYa08CLjMHNn94ZmmO ILzfBdlwnlYRIiUpezfp5kbJo0XWuhlPAjZ0WpcXqssT5upThTwGgZtI96wbM7WN6rRw 5cSFxTqMDhZlgXQbjYSXSc6cYYG2E2rUxFm8ah7HSZ4FGhbWjXKuCaqSoGcwOeUzP5Ow D6qn5c+ynnWjJXLVY2l5fAJdZdM0fQCnCzOo/kYzrr50WbhI6sHNwi2WPVtbmnXWoZ/Z 6CP1S03g9hE7+i/2EFIY8qoklsAtcH66cHaEyLAZvIdtk5F+SwN6PhDhLcMqGqN7uvOI CqeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sSdwb2vE; 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 s9si10007654pgp.9.2019.05.25.18.20.39; Sat, 25 May 2019 18:20:54 -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=sSdwb2vE; 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 S1727641AbfEZBTe (ORCPT + 99 others); Sat, 25 May 2019 21:19:34 -0400 Received: from mail-vk1-f196.google.com ([209.85.221.196]:45795 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727622AbfEZBTd (ORCPT ); Sat, 25 May 2019 21:19:33 -0400 Received: by mail-vk1-f196.google.com with SMTP id r23so3085713vkd.12 for ; Sat, 25 May 2019 18:19:32 -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=b3q0HmTjK6ahA4s0OOAEIvrRZJfHHkbeVitRycuPpus=; b=sSdwb2vE3hxe2KGfBBFZ8AADbiEMIieWjiMGJoQIHG7mJc52DHR1BpLurF+JqTIrUf wZqZjB/I2vn5m37cue9TMKXOA2Ib8QIw+/3Aw7Eq1ZoM+ddfBNIe7qOyWh1+DJ5yzdrs 5fb5fYe9IU4Knh++Acd3RMCuK5sej+ASBGqhbNkjkAt4PyHIUOqOJJcJ/8rCL4tZNS9G NMQU7MfQgIbN4oOF5Go7hzISJDST2enu3rAB5NfrqckBtlBP1ok3wqk3FCwMYWncllU2 ZdANDDC63FG+tf7X46ZUQPUSmyHL6t4kQGQ/qD1qfmrpIf0BwjhqdfFCSgfYjCJK4cha YBIQ== 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=b3q0HmTjK6ahA4s0OOAEIvrRZJfHHkbeVitRycuPpus=; b=iWo79cfHGpQF44o1bkRkpf0mL3WNe3a44dlV/anE3KowsYvwIkK8rDYopHbjrDfVdt M11FaeTarig4OLlVJ3hUwmvJ19UjsXTlR9rLjmgDT5CVuzvd5rkRo4bhVy/N60VE+/O2 gwWbTSJQkaQh+5NIa1/g+kTtrjTMi1D161Fbj3iNHYfUqH3L2Vmo3EBCaH8oQ+hIIK3o tbYQzPGUKdTv/S7borgxSbfNmZ2jPJJnmJYW3ZMyYaVnk0B+s6Yz2IHaUp8DUKxcl7TV rR0iNePw3zNaEMzax28NPqtdrASSBv0toX6EjBZombgNH4hk+zD7E11y6v6eIWPhcfby gw5Q== X-Gm-Message-State: APjAAAXEg8vFDeKii7OsmHKBGw2Uw3rDWBQodl9RUBlpAhj9OdDPN5Or W0DexSQ5mWNWSDKrzw2Fdi8= X-Received: by 2002:a1f:2157:: with SMTP id h84mr12653417vkh.84.1558833572039; Sat, 25 May 2019 18:19:32 -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 9sm4593181vkk.43.2019.05.25.18.19.31 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 25 May 2019 18:19:31 -0700 (PDT) From: Geordan Neukum To: Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Geordan Neukum Subject: [PATCH 2/8] staging: kpc2000: kpc_i2c: Remove pldev from i2c_device structure Date: Sun, 26 May 2019 01:18:28 +0000 Message-Id: <21d8e5c3902c12d71c251d14d5b8607b5e25cf4c.1558832514.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 i2c_device structure contains a member used to stash a pointer to a platform_device. The driver contains no cases of this member being used after initialization. Remove the unnecessary struct member and the initialization of this member in the sole instance where the driver creates a variable of type: struct i2c_device. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_i2c.c b/drivers/staging/kpc2000/kpc2000_i2c.c index 2c272ad8eca6..b2a9cda05f1b 100644 --- a/drivers/staging/kpc2000/kpc2000_i2c.c +++ b/drivers/staging/kpc2000/kpc2000_i2c.c @@ -36,7 +36,6 @@ MODULE_SOFTDEP("pre: i2c-dev"); struct i2c_device { unsigned long smba; struct i2c_adapter adapter; - struct platform_device *pldev; unsigned int features; }; @@ -595,7 +594,6 @@ static int pi2c_probe(struct platform_device *pldev) res = platform_get_resource(pldev, IORESOURCE_MEM, 0); priv->smba = (unsigned long)ioremap_nocache(res->start, resource_size(res)); - priv->pldev = pldev; pldev->dev.platform_data = priv; priv->features |= FEATURE_IDF; -- 2.21.0