Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2598633lqb; Tue, 28 May 2024 05:13:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX24iCodAeRqLUlk9m1wve9S6YwRZOESAWP/aYwYXzFIyMsS+81uUYBgOvXFS6LS5GOm6HD9IPMMMLk+2CCR6BxWghu9V7yLjJL1Qwc3A== X-Google-Smtp-Source: AGHT+IH9qUHyxgbyhG7NKF+AibsfAwXkAFqfMf7V3yWGIYw3uUyobLX6HG/5LdNXUt21DunAxvJY X-Received: by 2002:ac8:59c9:0:b0:43a:dac9:d9b7 with SMTP id d75a77b69052e-43fb0eacf3bmr137758801cf.39.1716898408070; Tue, 28 May 2024 05:13:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716898408; cv=pass; d=google.com; s=arc-20160816; b=QuxqhAoZ0I5Tg337Lz/STsyt4ZdDqeYO5HdXkk0SL3FIHcuYZB2N02623J/uC1OSpu MXfhTQOSk92r8DdQeebEzHJeYCNP/Xg679dFcQYVK0c/MZ4qdzla4ItcKsDlt2soJBpD 2EvsVxerikb6l0iaFXHT09Lh1wBPNFAIiF/5qkJWEraFtNtlSIZQXoc7S4bb2TFu1sqt GhK3U+HKKMH4h/YxOvH+tEckqG0qgbwihfSjXqYK/PTptjibH3HcScfhA2guS3crDasw +OgaazbpuBI/QN0yzAk1lZFxjwX/qzXgzTMZAzsrj2dOF41NiFb0eL/RB5Vpcdxu1dL3 WZXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Rwvv4v0ybKtLmNktHnQYwKy5aRhkw8HY80ipiSVbMs8=; fh=dk+Sl5sTgyb4+PdwBZPhM3V8HXLiRV35ytKLrzbT8tQ=; b=Ui7YlFutxo2Frk369m0eiOjQ2P4bGllGIXNN5bkOZ4aj6TM58joGJ2cKZpAq0YnXoq pD500ZUcN5aiKoe7vs/RT43YJ93c+pQkjPwv+DVuSTUTorNz5e4ctgKTFU3f1BnU31r+ lCppd0bBML5RwQbDjX9zHUfZ0eC7pn9atRGJiKFxIs3qJIXVFpBnBbmMpaUPllcYlJkp AnVN5KM45rgy5aUykoWM2yMmUciIsQHPyCXA04ok6xYrudQ5UHITqtbEdrLS41UI7e35 EcNUXdsuiwHxUv+uWECrO4OFoB2zLAEYNYgklfk3sYOOES/d7rmfLskFdMC5L+dg1TYC K3RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dzy07cQ6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18a87c1si115187751cf.271.2024.05.28.05.13.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:13:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dzy07cQ6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5FB0D1C20B3B for ; Tue, 28 May 2024 12:13:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8587116D4E3; Tue, 28 May 2024 12:12:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dzy07cQ6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB94116D33C for ; Tue, 28 May 2024 12:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716898346; cv=none; b=deL399l3f9ymyot4fF8cTzu+Up+rThR10yTDO+UJoU9Ik7TcaNZsA3r6co6HhAe8FE7GnniuMIenTFOQsFKgEcHKeKizcJ7Aa5jDt9c7WuhRengFlVyq65GpJXHejoGYKSNjbrdDpCH0GtmYknIc9IXn7+sm/2N9Iatk6POJAjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716898346; c=relaxed/simple; bh=nGSDS9vGtseFAPoPz3Fk0zZfldajpInUYLkCfgbvaEM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SahsbbNPM2wK1v8i1k309TS0bScWoBZhldszLMf1vFClKO/PYh8j5008iOxA4SCUo0qDPdad5lYnV/kqnVlf8n2bk7gV/qfOmPKp8M72e3AHSTFRPCnImdYTW4QNIYzqaxPd7GRPm9VsmVT2kDXG0+xLaMOxNy6NDF70T9iGnPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dzy07cQ6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C76CEC3277B; Tue, 28 May 2024 12:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716898346; bh=nGSDS9vGtseFAPoPz3Fk0zZfldajpInUYLkCfgbvaEM=; h=From:To:Cc:Subject:Date:From; b=dzy07cQ6ygCTD+N1vSU/vY2eUn2/YQlKAlP0GcykKFV41MLs52JD4E1BRuId25n+z 4F/LsiZN8zzAK7e2pjg699/eF4ODp4G5w+Zl2iSMTzq3V2xanZPBYpPzRvoDkfPY4M L/n6RWwN7gyEpAGrfQdAgOa0sfgD+dLrn7Dg7iQ1mLhbCBgMBOL2WMOulCx1Z6ph2B OR2bnfMJxpYeA7pnQuTS7eELRvTdOxfR3qax8g4DDsNHlQHH6ZunjThZ7seAcMCojY 5AbGnh61Yd7+ghwYfkBrXEeaPSVRR0Fwf7jDsSF/DUDiu9RRz7HYIhcQq4eRzZrzPK VIlEb14Yn55GA== From: Arnd Bergmann To: Liam Girdwood , Mark Brown , Alina Yu Cc: Arnd Bergmann , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-kernel@vger.kernel.org Subject: [PATCH] regulator: rtq2208: remove unused rtq2208_regulator_ldo_ops Date: Tue, 28 May 2024 14:12:13 +0200 Message-Id: <20240528121222.3675312-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann After the recent rework, the structure is no longer referenced anywhere and causes a build time warning: drivers/regulator/rtq2208-regulator.c:222:35: error: 'rtq2208_regulator_ldo_ops' defined but not used [-Werror=unused-const-variable=] 222 | static const struct regulator_ops rtq2208_regulator_ldo_ops = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ Remove it to get a clean build again. Fixes: 38bcec0e7cbb ("regulator: rtq2208: Fix LDO discharge register and add vsel setting") Signed-off-by: Arnd Bergmann --- I did not analyze the change to see if this is the only required change or if there should still have been a reference instead. Please review and confirm, or provide a different fix. --- drivers/regulator/rtq2208-regulator.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/regulator/rtq2208-regulator.c b/drivers/regulator/rtq2208-regulator.c index b90e53d922d6..5b49eff90a7f 100644 --- a/drivers/regulator/rtq2208-regulator.c +++ b/drivers/regulator/rtq2208-regulator.c @@ -219,15 +219,6 @@ static const struct regulator_ops rtq2208_regulator_buck_ops = { .set_suspend_mode = rtq2208_set_suspend_mode, }; -static const struct regulator_ops rtq2208_regulator_ldo_ops = { - .enable = regulator_enable_regmap, - .disable = regulator_disable_regmap, - .is_enabled = regulator_is_enabled_regmap, - .set_active_discharge = regulator_set_active_discharge_regmap, - .set_suspend_enable = rtq2208_set_suspend_enable, - .set_suspend_disable = rtq2208_set_suspend_disable, -}; - static unsigned int rtq2208_of_map_mode(unsigned int mode) { switch (mode) { -- 2.39.2