Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932672AbbD0MNs (ORCPT ); Mon, 27 Apr 2015 08:13:48 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:25424 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbbD0MNl (ORCPT ); Mon, 27 Apr 2015 08:13:41 -0400 X-AuditID: cbfee68f-f793b6d000005f66-8b-553e27f3f99c From: Chanwoo Choi To: linux-kernel@vger.kernel.org Cc: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, ckeepax@opensource.wolfsonmicro.com, cw00.choi@samsung.com Subject: [PATCH 3/4] extcon: Fix the checkpatch warning and minor coding style issue Date: Mon, 27 Apr 2015 21:13:37 +0900 Message-id: <1430136818-11657-4-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.5.5 In-reply-to: <1430136818-11657-1-git-send-email-cw00.choi@samsung.com> References: <1430136818-11657-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsWyRsSkQPezul2owfZ+PYt/U26wW1z/8pzV 4mzTG3aLy7vmsFncblzB5sDq8XLibzaPvi2rGD0+b5ILYI7isklJzcksSy3St0vgyrjxYBpb wT3RiinTj7E0MB4X7GLk5JAQMJE4tuo2E4QtJnHh3nq2LkYuDiGBpYwSF95vYIMpurbvIwtE YjqjxJP5/5ggnC+MEu2Le1hBqtgEtCT2v7gB1iEioCCxufcZWJxZoFRic99TsLiwQJjEyn9P wGwWAVWJE3tWg9m8Aq4SJ4/OZ4XYpiCxbPlMMJtTwE3i3dpjjCC2EFBN75FdzBA1v9kk+jrr IeYISHybfAjoOg6guKzEpgNQJZISB1fcYJnAKLyAkWEVo2hqQXJBcVJ6kbFecWJucWleul5y fu4mRmD4nv73rH8H490D1ocYBTgYlXh4JSbahgqxJpYVV+YeYjQF2jCRWUo0OR8YJXkl8YbG ZkYWpiamxk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i0z5pPzDiuxFGckGmoxFxUnAgDE+dQ5pQIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2949 Lines: 83 This patch clean up the extcon core driver by fixing the checkpatch warning and minor coding style issue. Signed-off-by: Chanwoo Choi --- drivers/extcon/extcon.c | 10 +++++----- include/linux/extcon.h | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index c5e9ebf..2fb5f75 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -1,5 +1,5 @@ /* - * drivers/extcon/extcon_class.c + * drivers/extcon/extcon.c - External Connector (extcon) framework. * * External connector (extcon) class driver * @@ -19,8 +19,7 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * -*/ + */ #include #include @@ -469,7 +468,6 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj, ret = raw_notifier_chain_register(&obj->edev->nh, &obj->internal_nb); spin_unlock_irqrestore(&obj->edev->lock, flags); - return ret; } else { struct class_dev_iter iter; struct extcon_dev *extd; @@ -489,8 +487,10 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj, cable_name, nb); } - return -ENODEV; + ret = -ENODEV; } + + return ret; } EXPORT_SYMBOL_GPL(extcon_register_interest); diff --git a/include/linux/extcon.h b/include/linux/extcon.h index e2cf625..799474d9d 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -97,8 +97,8 @@ struct extcon_cable; * @state: Attach/detach state of this extcon. Do not provide at * register-time. * @nh: Notifier for the state change events from this extcon - * @entry: To support list of extcon devices so that users can search - * for extcon devices based on the extcon name. + * @entry: To support list of extcon devices so that users can + * search for extcon devices based on the extcon name. * @lock: * @max_supported: Internal value to store the number of cables. * @extcon_dev_type: Device_type struct to provide attribute_groups @@ -258,7 +258,8 @@ extern int extcon_unregister_notifier(struct extcon_dev *edev, * Following API get the extcon device from devicetree. * This function use phandle of devicetree to get extcon device directly. */ -extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index); +extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, + int index); /* Following API to get information of extcon device */ extern const char *extcon_get_edev_name(struct extcon_dev *edev); -- 1.8.5.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/