Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3150545pxf; Mon, 5 Apr 2021 04:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxftaqwcfBpXrRE/ZyJSiCnRRVbnmtALSbtJvRX9L9HH6QfU2lPiKJBvs4u1pXbGr3mtfnV X-Received: by 2002:a92:7b05:: with SMTP id w5mr18875503ilc.232.1617623097256; Mon, 05 Apr 2021 04:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617623097; cv=none; d=google.com; s=arc-20160816; b=jIvpVTS2/oEVrY+EQBaNBRvyiPBMNB00vDnrjAuW4YkruSsO4Nb2/u0AitFotuYjfb ZqA0BtRm/Ea350QaRD5zaYYoY8GditusTZX8EzMCn+ycJ92eB2dVqWNomIVVkVAqEjHW G2vzLHEIB13Ntm50XmIdGmuN26EuqAAqYrtlqSAO3FDZmqV9eZzB2MtdAp8uXf/5NqNW ZpKLpO/jZn/FUwj0rFvOQgmIR/Uc0Isp+Od4ML0aSmPSiRAr/bKNhEooxo1BnH1hY9ZQ lchTPnoUVy3OATTJ97vCL8MtDkv9nX1geuBJeONiyGiaYY2MhEUXTiIFIQfR8a7cIGPo myHg== 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=nnaEJ8/DC6TI+P9mLvHz/axN5746FOzmNf17KCWvMig=; b=je4ZXnVpc0Ahaejor9jAmqx2UxLRoXaYoTVVOmHcHEsOU+4LeC9Bwt3yULkoWFlHlG 3QrC3o7TcykUD4FsVYcsWCTBm2nEty+YciyP/DqzM7J7iJUZl6wwWlZyNbJPc1b6tRJ2 qmltW3+D51Uzla/rjy/tX2C0hfMJt1SZl/H+8sp0oE8bGuSYQGQUBozv6A6EV+ju1JDb 0ISmpaQGZBzDe0Et7qNuO1rDBB0C2/7OD0BD379EH9JAs9cI8hsmmEH0ma/fVKCBXF/k dKiPCJ7ihJy1ZqHXcPXOMMGIDoqtmGlvVElkLD7iFd8gpOFpnFiQwzH4DingMO0n5Ljk Uj3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TGTwiVZx; 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 q12si14448520ior.61.2021.04.05.04.44.45; Mon, 05 Apr 2021 04:44:57 -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=TGTwiVZx; 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 S237065AbhDEI7u (ORCPT + 99 others); Mon, 5 Apr 2021 04:59:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:39902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233768AbhDEI7P (ORCPT ); Mon, 5 Apr 2021 04:59:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1CF06138A; Mon, 5 Apr 2021 08:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617613149; bh=E9fku5e4yUEvAUCCP0/vErZNYjwJokpzyYfd/zqTwu0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TGTwiVZxfaAtWjtw1lL2r9OVfs8y/fIGgiFni18298n1M+E/9bo4M9+GIsodj0Tb1 fXDBwS8PlZQy0nvJUPuduLa0OEgA4sJZvybZuEMYBvMrbHG6v+W2XPbkfuQQCiJwcy aZsb+neRlvC+3B7glzJrcA1v4G6wXqv4T+gcxtZs= 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 4.14 38/52] extcon: Add stubs for extcon_register_notifier_all() functions Date: Mon, 5 Apr 2021 10:54:04 +0200 Message-Id: <20210405085023.227582602@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210405085021.996963957@linuxfoundation.org> References: <20210405085021.996963957@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 744d60ca80c3..8f4dc784ab90 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -377,6 +377,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