From patchwork Wed Jun 19 14:08:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13703858 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5649C27C53 for ; Wed, 19 Jun 2024 14:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8CngIhS3kRulmGpU0Rg5JrWUuRc/630k552QGhg/cDY=; b=KqmMThiOHjf3yuVbkFCvWEi/ez VUXzL41S2nlCySoekYk84eIKHPcrj64GlKJsALU7WNYBeazW5UIcAD3tJG6Q014ZrnZR92hrycyCN qCe/IMtunbJiKw3bulB5xoemNowkzkfzH7tJwogquN1rH6tLTCq95E/BssLRJFtDdnTQA0o4/4da0 RG5PSziqpaArQnaDu+6c1KHZPjf1zo5o4piHVQW6aJXg9NMLUh2tnNO1hceFDqiRUodRFwy0en/Mj QiqAlBm3V5XL4zQwtrOnbjgLD/UtGbhWlVVF04x5kn08c7qzlqf15SfkjwYhbuEznuXde4HaqT7+u Rn54WPZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJw0T-00000001RN3-2YGP; Wed, 19 Jun 2024 14:09:49 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJvzz-00000001R48-2N7c for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 14:09:22 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-52c7fbad011so7667756e87.0 for ; Wed, 19 Jun 2024 07:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718806158; x=1719410958; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8CngIhS3kRulmGpU0Rg5JrWUuRc/630k552QGhg/cDY=; b=HFhE2MhtG86e/BMHDuQpJkzmgTUpkzRQ/rKqAYE1HRL40rLgXX5C7d2/g4eOcQybWn pQJZCexdLFLZYjbJWUsWDDe/nasPICILzo43FSzwKJFlDAGtlLxM5206tMxjJTm54zMr g9Q7xe3iuH6JcCm99ik4LxQa4VSFwWeEdwa6CvGzgU9QoOM2yaYQT1qYeJOz5uU7osXV wVTIRUf8Q0xLVV8YWhBLwDy/rIL6cRjfRlj274bpyF57W0z1u8a91e69A3ClKZqmnptA oio+Pqc8BxApIpdzrzgfcWbwQ9o1ynE4ywC78r1QiccWH5OWDgoc3ViwOL2BWtOaf+J9 SRnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718806158; x=1719410958; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8CngIhS3kRulmGpU0Rg5JrWUuRc/630k552QGhg/cDY=; b=G57B04K1S5tLJPjdAQ5o4fATTuBQ/rcDhyZVJ7PkB/zz1BA1L3rXPrebGsLIkOVST4 w6Eje2PtLEHhe1K22WgwV7VBg0dxO48l8zXkUZfD7jV5iC3a3589UwlUofwWaUQPwhGR KRp0k2ELY7YO1JtFF8vWYod84bN7jLiOs0CblQCE9de7zFwQrR2Avl4EMwX+knT4h5h/ 1C0wOCcpbavmenn7Rt1HdZvIDFuQygdTH5ofnaeONEZTMBxA6X3LU2IyPaGB1PP0Wbtw e0PhkwdeHnV5w+75Mq46mAt8E4dS9yTju4m6lGqqccloPdzxWJoyIoWaPgexVwTiw9EG o+hQ== X-Forwarded-Encrypted: i=1; AJvYcCXMFzrDXjbo5ltnP5KwFIQDOxJErie04RKavHR5toTqiPVMnB6yFRh56V2JUV0/Bze1MR+nXBwsQv+eGiqECCtwnsa1SvogFP8AsdHlhfkZHGvr2Jg= X-Gm-Message-State: AOJu0YypyhYkjXruCvNFhv/Is6g9knBp0z64hi08Eq25zzXtuGl5Ef6D g5bEsi/uHnHaja8c/e0+kXGbOSWYBFrjJfPhm4jvgnZUpmZh56qRobMt/hMYMus= X-Google-Smtp-Source: AGHT+IGtMjaVRxqwME3U7CGrSptN6JfejN8F/ypK0frJbXiy1thTIGiCDNeAXU2vN4DLOqXBQiFdNw== X-Received: by 2002:a05:6512:3ca1:b0:52c:8b03:99d6 with SMTP id 2adb3069b0e04-52ccaa585e9mr2256803e87.6.1718806157835; Wed, 19 Jun 2024 07:09:17 -0700 (PDT) Received: from uffe-tuxpro14.. (h-178-174-189-39.A498.priv.bahnhof.se. [178.174.189.39]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca2872241sm1787003e87.124.2024.06.19.07.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 07:09:17 -0700 (PDT) From: Ulf Hansson To: Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Bjorn Andersson , Konrad Dybcio , Nikunj Kela , Prasad Sodagudi , Thierry Reding , Jonathan Hunter , Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] pmdomain: core: Drop the redundant dev_to_genpd_dev() Date: Wed, 19 Jun 2024 16:08:49 +0200 Message-Id: <20240619140849.368580-8-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619140849.368580-1-ulf.hansson@linaro.org> References: <20240619140849.368580-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_070920_376096_BFF728DA X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There's no longer any users of dev_to_genpd_dev(), hence let's drop it. Signed-off-by: Ulf Hansson --- drivers/pmdomain/core.c | 10 ---------- include/linux/pm_domain.h | 6 ------ 2 files changed, 16 deletions(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index a38d08862a61..4abedbb65354 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -184,16 +184,6 @@ static struct generic_pm_domain *dev_to_genpd(struct device *dev) return pd_to_genpd(dev->pm_domain); } -struct device *dev_to_genpd_dev(struct device *dev) -{ - struct generic_pm_domain *genpd = dev_to_genpd(dev); - - if (IS_ERR(genpd)) - return ERR_CAST(genpd); - - return &genpd->dev; -} - static int genpd_stop_dev(const struct generic_pm_domain *genpd, struct device *dev) { diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index f24546a3d3db..772d3280d35f 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -260,7 +260,6 @@ int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, int pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off); int pm_genpd_remove(struct generic_pm_domain *genpd); -struct device *dev_to_genpd_dev(struct device *dev); int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state); int dev_pm_genpd_add_notifier(struct device *dev, struct notifier_block *nb); int dev_pm_genpd_remove_notifier(struct device *dev); @@ -308,11 +307,6 @@ static inline int pm_genpd_remove(struct generic_pm_domain *genpd) return -EOPNOTSUPP; } -static inline struct device *dev_to_genpd_dev(struct device *dev) -{ - return ERR_PTR(-EOPNOTSUPP); -} - static inline int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state) {