Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3255471pxf; Mon, 5 Apr 2021 07:21:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSOOw8W7ifzxiI9bEHTKtbZoHcZK8Tq1hbqEvyCFfp4CyB28lbhdYfbb0gR9g62eSZXvir X-Received: by 2002:a05:6402:31e9:: with SMTP id dy9mr32120775edb.186.1617632517020; Mon, 05 Apr 2021 07:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617632517; cv=none; d=google.com; s=arc-20160816; b=JZ4eO1ZNeGfWFOKdBd8VXmxBADFEv4Z2GqKGSusm5mIejAT2HGuzxLLeaTy1F9VKez Q1VMkHS/FRLBQV4FJRru8IE3C5eeZbs0ArxJkS2SaWrpe5avW3FBmXCFzKyjWekFN37A jeTsNPrB82baNGV5JWE8XzE97GKc8TuD+3bhUGbHGRUm02yBtm8InKW3boKhLyLFEiYY qo5HBw8T+kHDxPHZvulRNaK3XpT5jJCt+g/NSZmJDsLay0FmAysTOtzOxLsKjxRyG8z5 NAC+FJNuG0ru+SwXJDwvzEGJPezc7c7R8DAg+2f5CFXypPZElEWGSCcEfxgffDhDtiqB LQSQ== 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=cJPyM7rXlgKRE2LL2tfR0+OZoYfQOuDZXGXAOpJNJQ0=; b=CvMcmvWQ3D+h4fUCObPaZAXbU2L2dG3Y1vBvlfaPojkeFVFVtiSfzkiopXg+F9oXZQ BheO7zRZ0mAxCcwFCJ4mfqsoXtM2alejLwV6yJZVaYlQtykbW3UXtN7TpMOeMxZJHuwo wf0KJkd4u2IyhKeUIS0bVexg0bqMSSK/sZ+D+mFBHOHTw03sCPQZ7p4a1ViPz9/wM7Ko eifDlwlqo8TMz7CJ7qG+RgGjUH7gaGpQJuZDXDsz/nrm2UAf0KrN2owZ7sKJM8Idy64n BVDox/4yhHhNNowyGW9OAgzzntK+MEkm1Hqf5IvUBDlrrey/Hs5ylz4rb325387Mg9JA Qixg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o25CTbfo; 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 d21si13114661ejm.343.2021.04.05.07.21.33; Mon, 05 Apr 2021 07:21: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=o25CTbfo; 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 S237611AbhDEJDQ (ORCPT + 99 others); Mon, 5 Apr 2021 05:03:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:43410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237353AbhDEJCI (ORCPT ); Mon, 5 Apr 2021 05:02:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AC7EA613A7; Mon, 5 Apr 2021 09:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617613292; bh=0CAvNLxa7T4c+czQjRhfvYUZISeiK0mp0cw4a5h8vmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o25CTbfomuFMDyoZ8p65uXZX24KBCDZpZtX/bBGkKPRMVhzhpzC25LRZpdwAtzseF se7Kf4bkGgADLGTAuMeoLBl/NR0lOdrhfMBVp58Ab2nhRkxeNO8KtQwJB+TipAM41v O6K2kxGmv/J+ByljMp7ZoONeznnkY5d2fdDTr/u4= 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.19 40/56] extcon: Add stubs for extcon_register_notifier_all() functions Date: Mon, 5 Apr 2021 10:54:11 +0200 Message-Id: <20210405085023.810618504@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210405085022.562176619@linuxfoundation.org> References: <20210405085022.562176619@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 7f033b1ea568..fdef4c784d03 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -279,6 +279,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