Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932710AbbD0MNw (ORCPT ); Mon, 27 Apr 2015 08:13:52 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:64631 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbbD0MNl (ORCPT ); Mon, 27 Apr 2015 08:13:41 -0400 X-AuditID: cbfee691-f79ca6d00000456a-c5-553e27f339fe 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 4/4] extcon: arizona: Remove the setting of device name Date: Mon, 27 Apr 2015 21:13:38 +0900 Message-id: <1430136818-11657-5-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+NgFjrOLMWRmVeSWpSXmKPExsWyRsSkRPezul2owbtPZhb/ptxgt7j+5Tmr xdmmN+wWl3fNYbO43biCzYHV4+XE32wefVtWMXp83iQXwBzFZZOSmpNZllqkb5fAldF0Kr2g ib3iwvvF7A2M/1i7GDk5JARMJFY8WMACYYtJXLi3nq2LkYtDSGApo8S0fZOZYYqmHGtih0hM Z5S4fHoOI4TzhVGifXEP2Cg2AS2J/S9usIHYIgIKEpt7n4HFmQVKJTb3PQWLCwu4S7xZ+xss ziKgKnGr+z/YBl4BV4mzbzdBbVOQWLZ8JlgNp4CbxLu1xxhBbCGgmt4ju5hBFksIfGeTmPh7 CQvEIAGJb5MPAdkcQAlZiU0HoOZIShxccYNlAqPwAkaGVYyiqQXJBcVJ6UWmesWJucWleel6 yfm5mxiB4Xv637OJOxjvH7A+xCjAwajEwysx0TZUiDWxrLgy9xCjKdCGicxSosn5wCjJK4k3 NDYzsjA1MTU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Csou2FGrdyxPiaU4I9FQi7moOBEAxS3etqQCAAA= 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: 1118 Lines: 30 This patch removes the setting of device name. Instead, extcon_dev_register() set the device name such as 'extcon[number]' naming method. - /sys/class/extcon/Headset Jack -> /sys/class/extcon/extcon[number] Cc: Charles Keepax Signed-off-by: Chanwoo Choi --- drivers/extcon/extcon-arizona.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index a0ed35b..363e6b8 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -1185,7 +1185,6 @@ static int arizona_extcon_probe(struct platform_device *pdev) dev_err(&pdev->dev, "failed to allocate extcon device\n"); return -ENOMEM; } - info->edev->name = "Headset Jack"; ret = devm_extcon_dev_register(&pdev->dev, info->edev); if (ret < 0) { -- 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/