Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3308650pxf; Mon, 5 Apr 2021 08:39:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAF2kfJFZ7vqbcMhxe/jLayiGS1bOLKLvyIJ9DcvNdJ34hJ8qJZ9/lbkT1cQamtkv5MF/G X-Received: by 2002:a17:906:148a:: with SMTP id x10mr15396286ejc.92.1617637172618; Mon, 05 Apr 2021 08:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617637172; cv=none; d=google.com; s=arc-20160816; b=mpThhFctjql1fosUYXhA/Ii+KsGu1Jse1sJW2+27Ue1uM3ZR7oA6IBMEkc6mPrZQTP B4u59/w5h7UXpJ2jQYFodkWkBwIxFvdRyBI+A/9wvYPC6/SC2JbXCONQ132v8uw+v0X9 uB/iEQbVUBmzafosrlB/SfbU2p3FUT7tjnw6L31Uahk2WNqZiAm61CxX4oiuEtwTvLGj QpgvpWpmD25nTMDj8tf2bPCyMMLAkWvE4wYS6MEpg+DcpAvCnz2seGSWAYtLsPjjRo5W 8CZXdVQnJw3jA37d7vOEBeoi9/S267sSqfgZfa4qSDKEFeyVvUkna4v3ylhV/UPfST2l PZpg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L9IZ4NpKz9Cskh7HtsJBLs1i88xM2vw8zsLwxW/+pjo=; b=nYLiNRZRupNgDx/1Jy4S0n6wu8GiZuBSuIzdfDbmbr0la0LZMQ+3UFPW+TpURhbQ21 H69xlcYCx1UWDLGsPg/IXJAAoSxuie7a5KXQKc0il3Cngx5WkeAScHk0Qy6Q4aMZISqu 5Rby+yuZmn89+DmRSsLqDlnEdye7JlNppy40BSAmO0h+Y0mXlqyg3h2ER04QV1RbO8pe s2rv7bNIBqn3LCgOGb37v0JM2vvnutOjVhk+ZU3qgJBT0bnvcbfZ8UTCLpeVOe4VYTr2 g9JkS34kqhDtWZ18sfgu6XwcqYUhhIeOkUH9b9GnQW+Nfr11EQNSk6mfAD2W94MIFR+3 t0tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m47lSlmI; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc15si1196753edb.552.2021.04.05.08.39.09; Mon, 05 Apr 2021 08:39:32 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=m47lSlmI; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238037AbhDEJGe (ORCPT + 99 others); Mon, 5 Apr 2021 05:06:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:48224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238430AbhDEJE4 (ORCPT ); Mon, 5 Apr 2021 05:04:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C970C6138D; Mon, 5 Apr 2021 09:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617613489; bh=GLFewNetAnV4tzQxjDLbtdKDcB2+LI5quZYj8vPOXiI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m47lSlmIJ9OrwEz+UCGPEsTEnmCbqus4oPD1HIB6JGzBkM5hxT6QBV+spxsGgnjRK 1CxFw+7ZnT7TaeYNcXkzlkMrrqVUaHc+A1DC1PdUC+zzv8vSMDSbl2znOeMXCJRVt6 RpIO6DfQlshfTDeEMLu9yC9ISrWxTOYj9OEw/BfU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Krzysztof Kozlowski , Chanwoo Choi , Sasha Levin Subject: [PATCH 5.4 57/74] extcon: Add stubs for extcon_register_notifier_all() functions Date: Mon, 5 Apr 2021 10:54:21 +0200 Message-Id: <20210405085026.579711908@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210405085024.703004126@linuxfoundation.org> References: <20210405085024.703004126@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Krzysztof Kozlowski [ Upstream commit c9570d4a5efd04479b3cd09c39b571eb031d94f4 ] Add stubs for extcon_register_notifier_all() function for !CONFIG_EXTCON case. This is useful for compile testing and for drivers which use EXTCON but do not require it (therefore do not depend on CONFIG_EXTCON). Fixes: 815429b39d94 ("extcon: Add new extcon_register_notifier_all() to monitor all external connectors") Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi Signed-off-by: Sasha Levin --- include/linux/extcon.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 2bdf643d8593..47d3e19a49ae 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -271,6 +271,29 @@ static inline void devm_extcon_unregister_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) { } +static inline int extcon_register_notifier_all(struct extcon_dev *edev, + struct notifier_block *nb) +{ + return 0; +} + +static inline int extcon_unregister_notifier_all(struct extcon_dev *edev, + struct notifier_block *nb) +{ + return 0; +} + +static inline int devm_extcon_register_notifier_all(struct device *dev, + struct extcon_dev *edev, + struct notifier_block *nb) +{ + return 0; +} + +static inline void devm_extcon_unregister_notifier_all(struct device *dev, + struct extcon_dev *edev, + struct notifier_block *nb) { } + static inline struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name) { return ERR_PTR(-ENODEV); -- 2.30.2