Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4047849pxu; Mon, 30 Nov 2020 16:34:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmjH3bqGFDlIgceztHPvPg+E4S8blDfqA7oD64Qwmgtd/h3HBbuIMNwUfQbw+wx67o3dxM X-Received: by 2002:a50:d54a:: with SMTP id f10mr383619edj.356.1606782851850; Mon, 30 Nov 2020 16:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606782851; cv=none; d=google.com; s=arc-20160816; b=FpdkeATLnjT/CNHY+cleUMnSRaT0uuTSNwHbpI5YqlWmi7E9YQqTJld3VWCOs/I509 PIYDjVhYEexnHEW5vCKUdcXxH3mvCUMXAVPKskLN2SUGzyfpnh6defx4VFHAgwYfmT4c e1NSAxWPm/lNH3kh+mq2PIJrVBMunkqJiK3ngOEyNJLfG9EUpsjmC02EjMkBiBUcYWPe lBTPWIF8cyktJMuGMKFJhL6cU8fN5g01yYwMJfu2ex6Mh/XJrACVDMJb866Desz1Mwpx GwoMmrjJ9f1qNkN2VtXmOr06AzVyGjHYfRS9xcpCx3ZHDETuk+8iwOMg72RwDe0i201Q jTGw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=X/bKBturRyIf9vMXnB4V35qfxrB0eSEPoc0/x0nF2eU=; b=SQEmzwoTKOn2MGTJWynfM3wxpcxjLs1AawTKkcn0F36613KorKGxB8Df4rDrjJ69KP z1cKoBblIBJkQ0exPxyOQn5bQFfpT87L72wFdzawybwU2t6r/UBk8Qk+2c1oBi9lnBIl b2pbs5KDqcMBlEyIpd7TCB0xoTPuwYCQwpSLEQEUA/L5OoazRQCYowIm2Hwwcw3nrchN W3yViPu3cOSJsFlW9khkAzVmpwnNS6kGBZgojyjMF2tqoZjdqdDXS0FobXY1stqDsojV r8junUPuCoPJBiWhKGG/Sp5+jJuImu9Yv9hTEhx2yZpVKnEqmkIFoJQBUpWRAubkeKVZ f6xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R88iTfRV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 gb14si11674224ejc.507.2020.11.30.16.33.48; Mon, 30 Nov 2020 16:34:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=R88iTfRV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S2389120AbgLAAcJ (ORCPT + 99 others); Mon, 30 Nov 2020 19:32:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388351AbgLAAcI (ORCPT ); Mon, 30 Nov 2020 19:32:08 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6718AC0613D2 for ; Mon, 30 Nov 2020 16:31:22 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id o24so21096582ljj.6 for ; Mon, 30 Nov 2020 16:31:22 -0800 (PST) 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=X/bKBturRyIf9vMXnB4V35qfxrB0eSEPoc0/x0nF2eU=; b=R88iTfRVb4F7Pq1bsAQjgSL7Jfetnmbut1dZQgSQmn8Wk3qzqs4NVHIsDq3ul55xxY deQC7k6sMchjPYAf9ZKrsLgbOILTiNNoE5dl3uaCLcZuGyIXPnfYZc4IAuN4Ex915pJQ QiLLylgjJihakVxmX0udSjcclnJfbkvM+LvAayR22ITiBsvUgOjGhOKNUi0/Z4WAdpKB lXbRBeOzk7tDn+nlOY7TDuvR0ORhz0mwN5bQ01qVKb8NROkmx9OLuxbNMW2PTIo9PQGV kbAN/qZ4y+AKdDqbQSOSK0M0wdCvuGHkgilFf+AJ+fJn0An6OX8pfCCidAuEdfKDu8kw es3w== 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=X/bKBturRyIf9vMXnB4V35qfxrB0eSEPoc0/x0nF2eU=; b=rJPeFlyGlor4+EKRMbXGC3KmC/InkzbdDxvvth2NRRrxnWAvjWHMXj1lK6QDyklGr6 KCnCSNFvgSQQr8LtAA9RB4mVC/byrURT+BSWHbOS05HlMVu2v0e2w7O94qBqtSgemrCn WwORgYsivwpw0Xp1pNxnd0hF67T6+aLtdGSzMmmgAcQ9uPw5/9rgcwdmKn+0aKawKI7S PhzMJlUx6VHVXrsj+iTthrqanlfshzlmyeO9GWJ2+32r/2gt1yM2Ubdrk7mO1GvERQWS k33lw79vBKXD0ghhboBWpzRfkqSxf7eS4gKBNnAayIion+bHhPiuynHr38EISrx49BYu HlUA== X-Gm-Message-State: AOAM532EN3uV3YW2lxUhWWr6SCafE4wKPdPcZJ4nRgf823jmHs/UPe0M PZw2cNEasUZkl5DCd/0TJ/IyAw== X-Received: by 2002:a2e:878c:: with SMTP id n12mr91604lji.319.1606782680750; Mon, 30 Nov 2020 16:31:20 -0800 (PST) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id f10sm24868ljf.26.2020.11.30.16.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 16:31:20 -0800 (PST) From: Anders Roxell To: b.zolnierkie@samsung.com, jdelvare@suse.com, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] drivers: hwmon: pwm-fan: fix warning unused variable 'ctx' Date: Tue, 1 Dec 2020 01:31:18 +0100 Message-Id: <20201201003118.2219422-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building hwmon/pwm-fan the following unused-variable warning shows up: /tmp/drivers/hwmon/pwm-fan.c: In function ‘pwm_fan_is_visible’: /tmp/drivers/hwmon/pwm-fan.c:167:22: warning: unused variable ‘ctx’ [-Wunused-variable] Remove the unneeded variable declaration 'ctx'. Fixes: 439ed83acc19 ("hwmon: (pwm-fan) Convert to hwmon_device_register_with_info API") Signed-off-by: Anders Roxell --- drivers/hwmon/pwm-fan.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c index 57b574837b58..777439f48c14 100644 --- a/drivers/hwmon/pwm-fan.c +++ b/drivers/hwmon/pwm-fan.c @@ -164,8 +164,6 @@ static umode_t pwm_fan_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) { - struct pwm_fan_ctx *ctx = (struct pwm_fan_ctx *)data; - switch (type) { case hwmon_pwm: return 0644; -- 2.29.2