From patchwork Sun Mar 26 17:00:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pirko X-Patchwork-Id: 13188371 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 73CA6C74A5B for ; Sun, 26 Mar 2023 17:02:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ddufi+DtAtZq9jxYt4/12PGgXaTSZ1YBzAIeBgUgkYU=; b=uIqHB2c2Def2Av ZY01ggwT63owNEhFI7GKIHFd4CF/P8ETotqW+vqxu0+C22u97VKpk11DY4Avj8pk2Uh4Ik36umoaD AbMkK6cewoU4nrtm/hxS0AmD06s75ajccM4kcRIaj7FHEyW/FIsT+Be5/Gwz82ziXjXJqt3kYk5i+ LGFrCvmHVCuBbC9LXb2VXsmlYdWhvqe4mtcF0qdG0Qd2ERsHWCSvOlkELBklZBqdQKFMry2HWs4Kp su9nuiXbPIsshWmw3xaLmuCPu9Jd6xso9TOgMVGkwZMwqT/Stkxl8aSPmA9+g3bRh6qMuRNvU/pt0 pNZF5q6nRWj46AkmQ8GQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pgTkM-008qzR-1w; Sun, 26 Mar 2023 17:01:34 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pgTjt-008qsY-05 for linux-arm-kernel@lists.infradead.org; Sun, 26 Mar 2023 17:01:06 +0000 Received: by mail-ed1-x533.google.com with SMTP id cn12so26640750edb.4 for ; Sun, 26 Mar 2023 10:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; t=1679850061; 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=bwW6oUpD5h8cj23E/vde86PKPUzMAEIVBwgEWSiD3uA=; b=maShE7hQ0xVsk01dePT8Gyl+ZzjKlPhD4CBzQJx8U5K+HL4vf+tAy2IyFHqgOLz7V9 4au6EfidxkbYOBa8mB01sV8TLc2+RaUbM7pcXwv9/41bu0u0LJ/X52M090WluCeG5pN2 3InXvbCpLGcWUlhj0jS8I53HT9I879VPJSOehlH9ERkRAOVvAEjSojNUOD8EUYXVjquN BnmnvLeF/HzvaFH9VAPlD1L0pzsFab6SabwqVfkTONYS0sANTpLe+QFACxNVzG88wAE7 EQjd9w37QGfEdTrng5xsesLYMOJbBaF8anaWikTSAOPEshw8p5gbTWutIohked+ICaOJ 3bNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679850061; 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=bwW6oUpD5h8cj23E/vde86PKPUzMAEIVBwgEWSiD3uA=; b=WZcMzh8xOhQWa131QG0r4KscDv3rxTQoQJXfFnRPIjkk1RgtczmuPuYkg07aGbluGa GC0GUHJXAWK1bHnlFpY+yEUSVW8w2yw4UdikZh2XmK0StAFK5qhoxXnJO6bglCSmD4YS 7FxUAvteWTm5US7ArPAo0xURYW8+Yzuz/2TqWwf7Rj0DIB1vPK7QDBDqnGt6KBxL04Y+ VIJqPq82LuB+E7J8GD1MmAAye0OuNrE+M0UHERNo8eGqDB5D8cCMN2okefMEOqAyQ8M+ awMWuX6rKf8CVNQEajwHaLfE3+2tyOTIUpckmj03qJAPOr7HinEaPs5IsY2CQamFSvaG h8tg== X-Gm-Message-State: AAQBX9fHe+iP12grBdcadLhEycABXVCEv3uNGhXPMIA/IefXgVyJUrUB BCFARuB1yyqYBwjLa5Z0IXq3cw== X-Google-Smtp-Source: AKy350aAoyrIBElGGuBqNIPvfAlr7j+pHNViwWZzsB345Jd6yv4nK48yXBcBagk0NV05PxljKZpuCg== X-Received: by 2002:a17:906:578c:b0:88f:a236:69e6 with SMTP id k12-20020a170906578c00b0088fa23669e6mr9545337ejq.7.1679850061356; Sun, 26 Mar 2023 10:01:01 -0700 (PDT) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id m27-20020a170906259b00b0093a3a663ebdsm7941215ejb.154.2023.03.26.10.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 10:01:00 -0700 (PDT) From: Jiri Pirko To: netdev@vger.kernel.org, arkadiusz.kubalewski@intel.com, vadim.fedorenko@linux.dev, vadfed@meta.com Cc: kuba@kernel.org, jonathan.lemon@gmail.com, pabeni@redhat.com, poros@redhat.com, mschmidt@redhat.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [patch dpll-rfc 5/7] dpll: export dpll_pin_notify() Date: Sun, 26 Mar 2023 19:00:50 +0200 Message-Id: <20230326170052.2065791-6-jiri@resnulli.us> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230326170052.2065791-1-jiri@resnulli.us> References: <20230312022807.278528-1-vadfed@meta.com> <20230326170052.2065791-1-jiri@resnulli.us> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230326_100105_573125_E1187874 X-CRM114-Status: GOOD ( 11.14 ) 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 From: Jiri Pirko Export dpll_pin_notify() as it is needed to be called from drivers. Signed-off-by: Jiri Pirko --- drivers/dpll/dpll_netlink.c | 1 + drivers/dpll/dpll_netlink.h | 3 --- include/linux/dpll.h | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/dpll/dpll_netlink.c b/drivers/dpll/dpll_netlink.c index 125dc3c7e643..cd77881ee1ec 100644 --- a/drivers/dpll/dpll_netlink.c +++ b/drivers/dpll/dpll_netlink.c @@ -1056,6 +1056,7 @@ int dpll_pin_notify(struct dpll_device *dpll, struct dpll_pin *pin, { return dpll_send_event_change(dpll, pin, NULL, attr); } +EXPORT_SYMBOL_GPL(dpll_pin_notify); int dpll_pin_parent_notify(struct dpll_device *dpll, struct dpll_pin *pin, struct dpll_pin *parent, enum dplla attr) diff --git a/drivers/dpll/dpll_netlink.h b/drivers/dpll/dpll_netlink.h index 072efa10f0e6..952e0335595e 100644 --- a/drivers/dpll/dpll_netlink.h +++ b/drivers/dpll/dpll_netlink.h @@ -20,9 +20,6 @@ int dpll_notify_device_create(struct dpll_device *dpll); */ int dpll_notify_device_delete(struct dpll_device *dpll); -int dpll_pin_notify(struct dpll_device *dpll, struct dpll_pin *pin, - enum dplla attr); - int dpll_pin_parent_notify(struct dpll_device *dpll, struct dpll_pin *pin, struct dpll_pin *parent, enum dplla attr); diff --git a/include/linux/dpll.h b/include/linux/dpll.h index be5717e1da99..562b9b7bd001 100644 --- a/include/linux/dpll.h +++ b/include/linux/dpll.h @@ -287,5 +287,9 @@ void dpll_pin_on_pin_unregister(struct dpll_pin *parent, struct dpll_pin *pin, */ int dpll_device_notify(struct dpll_device *dpll, enum dplla attr); +int dpll_pin_notify(struct dpll_device *dpll, struct dpll_pin *pin, + enum dplla attr); + + #endif