From patchwork Thu Jul 20 14:37:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 123339 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp3174682vqt; Thu, 20 Jul 2023 07:54:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTmjVyocQ3bLkyeXxdiuv4K1VGFWPt452egSGZLbgpp7AuUnQZGmK6XBYRwDegO6EcwjtI X-Received: by 2002:aa7:8888:0:b0:682:e24c:f4e0 with SMTP id z8-20020aa78888000000b00682e24cf4e0mr28448660pfe.11.1689864878585; Thu, 20 Jul 2023 07:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689864878; cv=none; d=google.com; s=arc-20160816; b=ddzGik8W/5MSOyCOVhXECLjl+6c+cYcvErzxL/xexqyw3BUvNqnQpmN0ARNkHCfHr8 dC62S9K2unGBSwMtAdMFeR3dticPLgTn+hjRTGRiIYptl+TRXHO5K1WRO8Ja6slQO986 QKKWSC85KArPRsSJl0mfyeN4K+IkrvwJS8jNkD9w2vBOA77u/EayG0BcZSQVY1/MAl3L 6i1xrbXbUPSANlZgeg4DrQ5PSBmxZYhYsOWqLNHFmIvQj7/4dxg8BM+zdRWFOwqCsOKj fczfVI3uErjnipu5zQOlWmC0F/OzNsZnahWD5MeJBUhS9CjLxAMoXC8uGd7gurWY6PPo jqGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=sTEYOLj85J2IW02pQi3/8uTEaUSk0uelm6llhQq4Jtg=; fh=mD8UzJiVenzdquc5FYmyAnU72EFX06DDqYIzvjTNdsM=; b=AQX/3mgOVNwnW8xZEGos3dleIkixzsEUAq+KkXvWtccLkxESbTPdxT2UmA1UsRlJAf NQDO1TlX+eXylJ10yc/1bBW3CuGJmWKlnuCgUdOGLT1MppYDcByBgA1BDNcDHOQt/9km iu7Ykx7x5T94VRfBihgCDEJuo2uTN56YaJeKr4gTEpe8uHKRXR2STbs6eU/L370ipggs grJBeB6RAmWAWxOw+2csgDWNZYcq019/sxnBp+2XN+ruiC5SAesH0LknZ9W7LEImJ3lB ADReD+lZdEXKDNhkqQ7qb/VhtrkV3bMR4u7Y8MfJMeXNORjUI3AvqOsk4eJklB+ZyW2/ XBHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fh13-20020a056a00390d00b006791029dbedsi1111292pfb.157.2023.07.20.07.54.25; Thu, 20 Jul 2023 07:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232280AbjGTOhQ (ORCPT + 99 others); Thu, 20 Jul 2023 10:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbjGTOhP (ORCPT ); Thu, 20 Jul 2023 10:37:15 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB973C6 for ; Thu, 20 Jul 2023 07:37:14 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R6FcW1PFkzrRmZ; Thu, 20 Jul 2023 22:36:27 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 20 Jul 2023 22:37:12 +0800 From: YueHaibing To: , , CC: Subject: [PATCH -next] extcon: Remove unused inline functions Date: Thu, 20 Jul 2023 22:37:12 +0800 Message-ID: <20230720143712.24812-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771951754674622080 X-GMAIL-MSGID: 1771951754674622080 commit 830ae442202e ("extcon: Remove the deprecated extcon functions") left behind this. Signed-off-by: YueHaibing --- include/linux/extcon.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 3c45c3846fe9..e596a0abcb27 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -328,16 +328,4 @@ struct extcon_specific_cable_nb { struct extcon_dev *edev; unsigned long previous_value; }; - -static inline int extcon_register_interest(struct extcon_specific_cable_nb *obj, - const char *extcon_name, const char *cable_name, - struct notifier_block *nb) -{ - return -EINVAL; -} - -static inline int extcon_unregister_interest(struct extcon_specific_cable_nb *obj) -{ - return -EINVAL; -} #endif /* __LINUX_EXTCON_H__ */