Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2971991ybh; Mon, 16 Mar 2020 13:15:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vswmV3NfNi/md+dmt+oXtI4ohxXy8AL2eYkBFEG1KC7tajF9IAzLzny5e+pMTl5aLwXxJGA X-Received: by 2002:aca:5c8b:: with SMTP id q133mr933845oib.38.1584389728617; Mon, 16 Mar 2020 13:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584389728; cv=none; d=google.com; s=arc-20160816; b=vXsO5ZFskkZmSq2399eof0vhbPreYBQ/V+Gc+zcxRkEIPg8y5Kgw2y3seFHp66Y7W1 jWH2R0T0oeIQ5B23z7wG1comUREYxuEaOv1IaYMCVbW2RqWkyzPt4ZGJPza65Sqp3f86 ATaB585rYEd7ePPZulX6SEu7vktZXWLYn2kxsqtW6EGczOX/Cw2RwuvhQBkib8y2DJxy kqstlE3YqVUbl5XGE1e7etw8/yMQEaySMDzFF5cnWgDcKhV9O6oXCkMtwTwm/I8Hxl3d Yv0BWY8hviCgZKL/gRje08yyan1web+wIzcwY7qPJFdtGd/4WBP13x/MMp0bwuJMmCuw rLlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=kFghqr0ZrR/IOj3V3EhBLNTYMa8w7BS109LPhT7qitM=; b=X4WevKefxoz5qYypDfrgU7phWyEj8H5k0eXAWm652lTVUzoG+g9dvTVRR0IsLKbub/ TFmdz/gBj5XjSXoO2vE+2DpkxFfu85SS/UObQ/jmA3JFaa64d2qi49Wp9fYN38BzRQ8c /Mw67gKB5MRLVGS4RLzHORzyi0U0T8tvhU4oTskSRBCTi3ycs6wu1C9ln7zvI2I+BKVD Cm9USy4uF3UASivk0+eZoDvnZMZSkCv8QKqogEsl7JIEXqt7uo+6xDvuJlXw8fx1QjdH O5uvxlbXnu1mHJ3C7ofRDsX/mMTR0pAKlX4jP0gC+QcizWB51cHQji2qrr/6KY+nI+OO y7Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=mVM25MR7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si496967oix.112.2020.03.16.13.15.15; Mon, 16 Mar 2020 13:15:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=mVM25MR7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732518AbgCPUOw (ORCPT + 99 others); Mon, 16 Mar 2020 16:14:52 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:56559 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732486AbgCPUOw (ORCPT ); Mon, 16 Mar 2020 16:14:52 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1584389691; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=kFghqr0ZrR/IOj3V3EhBLNTYMa8w7BS109LPhT7qitM=; b=mVM25MR7MrCCpF5gMbr0RucGbE00TlgA7Of8GixcE4cIvuPUZnfwE300fexkQ5yxDwUaTka+ L/rQ9V+DNTPt6nh1553bznrHGgsWxd1dp5JJaDEzL0HdwYJWBQh1OjJy/RRse1V8xjfqrQBB CCJCD5RKFkUDj8h2hILRv5L0Tnw= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e6fde2d.7f35ca500960-smtp-out-n01; Mon, 16 Mar 2020 20:14:37 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6D79DC432C2; Mon, 16 Mar 2020 20:14:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mrana-linux1.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mrana) by smtp.codeaurora.org (Postfix) with ESMTPSA id B08A7C433D2; Mon, 16 Mar 2020 20:14:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B08A7C433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mrana@codeaurora.org From: Mayank Rana To: myungjoo.ham@samsung.com, cw00.choi@samsung.com Cc: Mayank Rana , linux-kernel@vger.kernel.org, jackp@codeaurora.org Subject: [PATCH] extcon: Mark extcon_get_edev_name() function as exported symbol Date: Mon, 16 Mar 2020 13:14:32 -0700 Message-Id: <1584389672-9195-1-git-send-email-mrana@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org extcon_get_edev_name() function provides client driver to request extcon dev's name. If extcon driver and client driver are compiled as loadable modules, extcon_get_edev_name() function symbol is not visible to client driver. Hence mark extcon_find_edev_name() function as exported symbol. Signed-off-by: Mayank Rana --- drivers/extcon/extcon.c | 1 + include/linux/extcon.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index e055893..2dfbfec 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -1406,6 +1406,7 @@ const char *extcon_get_edev_name(struct extcon_dev *edev) { return !edev ? NULL : edev->name; } +EXPORT_SYMBOL_GPL(extcon_get_edev_name); static int __init extcon_class_init(void) { diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 1b1d77e..fd183fb 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -286,6 +286,11 @@ static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, { return ERR_PTR(-ENODEV); } + +static inline const char *extcon_get_edev_name(struct extcon_dev *edev) +{ + return NULL; +} #endif /* CONFIG_EXTCON */ /* -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project