From patchwork Fri Mar 26 14:34:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 409509 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1489315jai; Fri, 26 Mar 2021 07:36:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM0uExbeUgqbuijghqoNGpnJyfzV9T7YQUSl4/zbamI1akeDhY9uqsnr0J1sO9XXiodwyt X-Received: by 2002:a05:6402:142:: with SMTP id s2mr15442759edu.2.1616769389088; Fri, 26 Mar 2021 07:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616769389; cv=none; d=google.com; s=arc-20160816; b=T1qfJxI5zCdwJTWwJP2SGh8YsJ6DIKlYgfeODFYMEsFUV2mUAbTVtmmvhs3PjquwDu i/KnX2aEJyrs1GQ4SWOpvjtRmPFIRYPF38Y6kLbEr0lSzUI6Fnoxb8OGBjbxUHbjubgc zifyP04N/SLqMGuyg/r7eey/yd5nlrl5jd67AOKLfgU2MwYIfolm0U2SVmuPAuNp+mWL r6inxCGTppwFDBSEdc5iPIFH86h/tfzdXLhOBsIbykaPPds0isGvInldKYzN+10lhQDh d0JVhVKlnGI3QoTWz4KMQ2ePddNUYUlK1tsG7VbdGngeuRohAtKUq7iKW/2Ssx0wAtj7 kDPA== 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=YMBBfLBQyPfcs/BjCQH23mCoZ18SMLXlxq4s4Yi+O24=; b=FGHFfLwxLb2BtmXFs56TUzkmb4yGyvObp/3kntI8/96sM3PtClAy6QCf7nreHldayV TahX1cJ0pxcCHpuFaYWXJt1+cI/Nbjiszwe3+AcA5ECsCPRqJd0xy6N3OMm24LSDpo6W VdNJLrEdPdz+vMeWEj+/SJPTND6Z1XRmLZY7i0u38uEoqD15Epcx0q/Ir8YOS+sIZbIY uPeUajOPU+H1Pv9GXUGXvpY7OpfUbyDXcQOk66OyWxXaJ3P1GkPIb01i2JUOhgCEgTk2 0G32NM+kWB3ZUGpDXIsq2GCxJdLsCP7mqDvaTSDym6g9t0unDXzDwjM9wXx6Zj9ySC1o UYrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SzlRTOBc; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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. [23.128.96.18]) by mx.google.com with ESMTP id e16si2126144edz.7.2021.03.26.07.36.28; Fri, 26 Mar 2021 07:36:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SzlRTOBc; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 S230514AbhCZOgA (ORCPT + 1 other); Fri, 26 Mar 2021 10:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbhCZOf0 (ORCPT ); Fri, 26 Mar 2021 10:35:26 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFE83C0613B1 for ; Fri, 26 Mar 2021 07:35:25 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id x16so5868434wrn.4 for ; Fri, 26 Mar 2021 07:35:25 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=YMBBfLBQyPfcs/BjCQH23mCoZ18SMLXlxq4s4Yi+O24=; b=SzlRTOBcfb8HruNCzxQ/XXDAxq8fqES6yINPpKxgv4YKBPLmmbqmuPhwiUVO/O/bUW P1w/L8olV5BC+2GhwMbfJzWKf+I0byxOzDmxedHXQRpbaUn7kLwJTP3EYVK9rUnFTuOX LSPAQMbX/Q5Z9jQhWhH72x2cn7ShB3260TwJY25LbnCBInnTAVHXAYq5MrO24MNb+/nk 3JFUCg6Dz1iHWIaWHwysjygdZsVzZpilI2K649/2LGwPBWT6xLAlqMoZIUed5yLxFyr3 Md0ubvCnN3awJtJHYKf5OU0rJagj7ePess/DcrJvayL0t57GgwR5I2DPAW5/L1/rCSIY 4Xxw== 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=YMBBfLBQyPfcs/BjCQH23mCoZ18SMLXlxq4s4Yi+O24=; b=kcTlDn83fyrN/44mYHVpzilTBBo9/yv8hk+v+Faq0nWewXne5I2vywmzGd/V7JVjem 7l5aCJcP6GJnW0lvAkxnQVgOvCJtsxPJptox3bwiFdYc3ULCaH+cUyHYsJrbsK+5IAs9 lbw2R3Ll2ug3Mhj5Jcs/kz0bZflWbTUi9NbmVX3fUzUu1ExZ8JL3ZZ5W0iXFJD8lqNTS QvmTA7wGXtRsHqciEKdVCH8VketbzLy1OLyHKOqUoDUhMRhC7QLSX8oqNiDRzoFyRGbZ wxasCJNaNwxnEfwE2pJh57cDgRhHpyh3T9CmlT1mCQhNprlzPQWAsaT0BpoLchUh4z8+ Mltg== X-Gm-Message-State: AOAM531PsSzA1lSShcIPruCboRoqSjkWIrYp7dvQo2EXJC8J6hJu9/IC oRqrsiM1zGdSQf18ZLc5Cw+aSA== X-Received: by 2002:a5d:6092:: with SMTP id w18mr14807891wrt.52.1616769324690; Fri, 26 Mar 2021 07:35:24 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id j26sm12878225wrh.57.2021.03.26.07.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 07:35:24 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada , Benjamin Tissoires , linux-input@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 22/25] HID: hid-sensor-hub: Remove unused struct member 'quirks' Date: Fri, 26 Mar 2021 14:34:55 +0000 Message-Id: <20210326143458.508959-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210326143458.508959-1-lee.jones@linaro.org> References: <20210326143458.508959-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Commit b0f847e16c1ea ("HID: hid-sensor-hub: Force logical minimum to 1 for power and report state") removed the last used quirk handled by this driver. Fixes the following W=1 kernel build warning(s): drivers/hid/hid-sensor-hub.c:39: warning: Function parameter or member 'quirks' not described in 'sensor_hub_data' Cc: Jiri Kosina Cc: Jonathan Cameron Cc: Srinivas Pandruvada Cc: Benjamin Tissoires Cc: linux-input@vger.kernel.org Cc: linux-iio@vger.kernel.org Signed-off-by: Lee Jones --- drivers/hid/hid-sensor-hub.c | 2 -- 1 file changed, 2 deletions(-) -- 2.27.0 Acked-by: Jonathan Cameron diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 3dd7d32467378..36b6852f75dd5 100644 --- a/drivers/hid/hid-sensor-hub.c +++ b/drivers/hid/hid-sensor-hub.c @@ -34,7 +34,6 @@ struct sensor_hub_data { spinlock_t dyn_callback_lock; struct mfd_cell *hid_sensor_hub_client_devs; int hid_sensor_client_cnt; - unsigned long quirks; int ref_cnt; }; @@ -615,7 +614,6 @@ static int sensor_hub_probe(struct hid_device *hdev, } hid_set_drvdata(hdev, sd); - sd->quirks = id->driver_data; spin_lock_init(&sd->lock); spin_lock_init(&sd->dyn_callback_lock);