From patchwork Wed Jul 31 10:56:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 170137 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp3865198ile; Wed, 31 Jul 2019 03:56:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0Dp7bsSIQPT46sQj+NUHL2vLCcbXL0ySHPc30pMILSX4Y4STYLd/to3APiw2ohfeK8O+0 X-Received: by 2002:a63:c751:: with SMTP id v17mr98588008pgg.264.1564570613211; Wed, 31 Jul 2019 03:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564570613; cv=none; d=google.com; s=arc-20160816; b=cBU7DLHLA1aBf2IQNZuLm2Vfh8243x/YbrNrLpWx19Buouhz+E2sbc/VezMY0PW+IO 9PP78ekdHcXPw3tsKh32Hj/5VQCDWhhNTq7wIHsnfcbY9Kd0jgDqhAJ9vyrZvhYgkbHI flfD6BOfnJ1sQEsp/cnXZoUBMQUr/mAzirwZcOvlrV0Hj1tVb0IFP2kOC3aYbsrh8ANF uztfL27U03Di3iEj8o/pMGyRra3i/QdJUOmgdjHBr5067a3Nj2iRU/Bky3eS/5t9pQZF CBxelH5dulrC4Jp3Mxlhwr495kL1kEpIe82/jsOJRzNN4VYOd8ZFy2RTkTXOIR8yBlZJ hGYg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lWUtb7zcpjriA4PXCl0a7ByZXS09QukiEbZhHIw2Fjk=; b=wHQ0mZ/mT9w7NS39B5js9loCo+lJ5QT62DEwVcwy0KzG/h48cakhGbElmkAa6/x/lZ VLvd98EBsz8f74KrtYsnCPxeqMXJnailDUs8rLLrPdcto7m6pEUW2leSnUUSqc6EGImA hmshZrlyhswU1jf5J+8o03nnhlDjTPpQTKHCALvMgPUCm9Be46fyDbSBlV4wZz7ye/uJ HW0Wo7Us9of78r0dKJn6u5JiCrKiyn0/AwY+KG1ID61aC72ZPQHjZz1qCSkydBeh+ZgY a3jLsfAnRtzXBI4XFTMOtlQL4Ibx8pqSVlnIBbbe/lgS1DOzsEAGhAZIyftJTuwRfW9k /IUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jH3yCYNA; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si30163159plr.260.2019.07.31.03.56.53; Wed, 31 Jul 2019 03:56:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-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=@linaro.org header.s=google header.b=jH3yCYNA; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728425AbfGaK4w (ORCPT + 2 others); Wed, 31 Jul 2019 06:56:52 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36109 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbfGaK4w (ORCPT ); Wed, 31 Jul 2019 06:56:52 -0400 Received: by mail-lj1-f195.google.com with SMTP id i21so65155323ljj.3 for ; Wed, 31 Jul 2019 03:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lWUtb7zcpjriA4PXCl0a7ByZXS09QukiEbZhHIw2Fjk=; b=jH3yCYNA8+Yew2LxOI67IHkIjKIsIvFHYzr03cz0THjJFGu0OSsiDwfWUan3chbQpm mZEmEi3yMQkW1v4HReuKE3j4j9p/8Wx1FKkBKXDmoKkeeNOzFy1e48b9yGjieDjSvsLl q6eJ0Q3q7/4RU5n4aXwx1Il4o8xewvLD3mclXDsKyWQwmw6bds/boYFyVWwpAL1NV7N6 P3d9H0F6jh2iWh6vDuzyv9gWB6jawLP/p5I8bS9gfxJ4IGJzLQUx1/wwy2IxRGylUo9x Mqx/a4sZNY16xHx/NQ2Se9O54+kiXJrC7MQtmbgVdCRhev9A/ltJvrS1pJnXqlQhKfwl xyXQ== 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:mime-version :content-transfer-encoding; bh=lWUtb7zcpjriA4PXCl0a7ByZXS09QukiEbZhHIw2Fjk=; b=cplEyHD6m8aW55hx3jr+dWbyeZwMkSO6+yQWma/kTGmck+sb+FFUiIItcLUlPDGHLP a5ldpxTT/qsbKS3ycwDbktvtW/DiuBBjGBM7kk4endhkZm8AV6SD9qMWvJ6yirpZc5I2 5caHQ/DVmqQHHzwZQ+3vknzrxTguN+gQVTZIx2185YaFIajm0RfIvCqy/NOgwJGtsLQI HFXyuk5+dQ8qFHGfUe48HisEFSj8w8wocJfHTSL/aSnq5J03ypWH6gCYJYLpGkiLwzV4 k2QFJRBrJntszR9vPfMUjR0tD1XNo9UBOnaFUyCALcwv9sfBO10lLuAtUtmHNs8uuY21 gaVw== X-Gm-Message-State: APjAAAUn6MjikVF7ePcA+TMWidvZLqYYwjlktFGnygeOeP6aSRBR8Fg7 G1bJAqOh4lJMUhFDjBKpmLuPCw== X-Received: by 2002:a2e:b0e6:: with SMTP id h6mr12041708ljl.18.1564570610667; Wed, 31 Jul 2019 03:56:50 -0700 (PDT) Received: from localhost (c-243c70d5.07-21-73746f28.bbcust.telenor.se. [213.112.60.36]) by smtp.gmail.com with ESMTPSA id l11sm13191843lfc.18.2019.07.31.03.56.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 03:56:50 -0700 (PDT) From: Anders Roxell To: mika.westerberg@linux.intel.com, wsa@the-dreams.de Cc: linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] i2c: core: remove unused function Date: Wed, 31 Jul 2019 12:56:42 +0200 Message-Id: <20190731105642.29664-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org GCC warns taht function 'i2c_acpi_find_match_adapter()' is not used. ../drivers/i2c/i2c-core-acpi.c:347:12: warning: ‘i2c_acpi_find_match_adapter’ defined but not used [-Wunused-function] static int i2c_acpi_find_match_adapter(struct device *dev, const void *data) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Rework to remove the function 'i2c_acpi_find_match_adapter()'. Fixes: 00500147cbd3 ("drivers: Introduce device lookup variants by ACPI_COMPANION device") Signed-off-by: Anders Roxell --- drivers/i2c/i2c-core-acpi.c | 11 ----------- 1 file changed, 11 deletions(-) -- 2.20.1 diff --git a/drivers/i2c/i2c-core-acpi.c b/drivers/i2c/i2c-core-acpi.c index bc80aafb521f..bb6b39fe343a 100644 --- a/drivers/i2c/i2c-core-acpi.c +++ b/drivers/i2c/i2c-core-acpi.c @@ -344,17 +344,6 @@ u32 i2c_acpi_find_bus_speed(struct device *dev) } EXPORT_SYMBOL_GPL(i2c_acpi_find_bus_speed); -static int i2c_acpi_find_match_adapter(struct device *dev, const void *data) -{ - struct i2c_adapter *adapter = i2c_verify_adapter(dev); - - if (!adapter) - return 0; - - return ACPI_HANDLE(dev) == (acpi_handle)data; -} - - struct i2c_adapter *i2c_acpi_find_adapter_by_handle(acpi_handle handle) { struct device *dev = bus_find_device_by_acpi_dev(&i2c_bus_type, handle);