From patchwork Tue Jan 28 12:18:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3546831 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C037F9F2E9 for ; Tue, 28 Jan 2014 13:17:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A93220149 for ; Tue, 28 Jan 2014 13:17:12 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D62AE20131 for ; Tue, 28 Jan 2014 13:17:10 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W87fw-0003CS-RE; Tue, 28 Jan 2014 12:21:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W87fI-0004TE-CZ; Tue, 28 Jan 2014 12:21:16 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W87de-0004Df-D8 for linux-arm-kernel@lists.infradead.org; Tue, 28 Jan 2014 12:19:40 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N040003W27T2RA0@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 28 Jan 2014 12:19:05 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-e6-52e7a03879b3 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 5C.C0.18565.830A7E25; Tue, 28 Jan 2014 12:19:04 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N0400FMZ27HEPA0@eusync4.samsung.com>; Tue, 28 Jan 2014 12:19:04 +0000 (GMT) From: Krzysztof Kozlowski To: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/18] extcon: max14577: Change extcon name instead of static name according to device type Date: Tue, 28 Jan 2014 13:18:30 +0100 Message-id: <1390911522-28209-7-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1390911522-28209-1-git-send-email-k.kozlowski@samsung.com> References: <1390911522-28209-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprALMWRmVeSWpSXmKPExsVy+t/xa7oWC54HGZzvNLKY+vAJm8X1L89Z LV6/MLQ42/SG3eL+16OMFt+udDBZbHp8jdXi8q45bBZrj9xlt7jduILN4nQ3qwO3x85Zd9k9 Nq3qZPO4c20Pm8e8k4Eem5fUe/RtWcXo8XmTXAB7FJdNSmpOZllqkb5dAlfG1wVTmQoe8VRM fnuCsYHxPlcXIyeHhICJRMves0wQtpjEhXvr2boYuTiEBJYySnx/co8dwuljkjj8+Q8zSBWb gLHE5uVLwKpEBFYzSaxZMJUFJMEs0MsocXO3B4gtLJArMfnGKrCxLAKqEtc7L4PV8Aq4S/Sc uA3UzAG0TkFiziQbkDCngIfEq6uNYOVCQCWnjr9jmcDIu4CRYRWjaGppckFxUnqukV5xYm5x aV66XnJ+7iZGSCh+3cG49JjVIUYBDkYlHt4H3c+ChFgTy4orcw8xSnAwK4nwJs5+HiTEm5JY WZValB9fVJqTWnyIkYmDU6qBcdemXcdKfc5f7uFa8i1wpfTdN6tu9XXF8JlcqtoUOJfL78r8 0pYnv3TtMk2dVdRTzpgILZAzO9h4OrNyYQNj4YwAJ1V+rSaPcMv/fZWv+QN2PI1ccvXLqadt Lpbs8S/K97koN9qJse80YbwV9q/7dPFVsfjN8oeW35PqdJ688L2sbMD1Zf63lFiKMxINtZiL ihMB5yxF5SMCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140128_071934_790505_7081350F X-CRM114-Status: GOOD ( 10.50 ) X-Spam-Score: -7.4 (-------) Cc: Kyungmin Park , Krzysztof Kozlowski , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chanwoo Choi This patch use device name to make sysfs path according to device type: max14577-muic - /sys/class/extcon/max14577-muic/ max77836-muic - /sys/class/extcon/max77836-muic/ Signed-off-by: Chanwoo Choi Signed-off-by: Krzysztof Kozlowski Cc: Kyungmin Park Cc: Marek Szyprowski --- drivers/extcon/extcon-max14577.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c index 3846941801b8..59f084fee4f3 100644 --- a/drivers/extcon/extcon-max14577.c +++ b/drivers/extcon/extcon-max14577.c @@ -24,7 +24,6 @@ #include #include -#define DEV_NAME "max14577-muic" #define DELAY_MS_DEFAULT 17000 /* unit: millisecond */ enum max14577_muic_adc_debounce_time { @@ -673,7 +672,8 @@ static int max14577_muic_probe(struct platform_device *pdev) dev_err(&pdev->dev, "failed to allocate memory for extcon\n"); return -ENOMEM; } - info->edev->name = DEV_NAME; + + info->edev->name = dev_name(&pdev->dev); info->edev->supported_cable = max14577_extcon_cable; ret = extcon_dev_register(info->edev); if (ret) { @@ -737,7 +737,7 @@ static int max14577_muic_remove(struct platform_device *pdev) static struct platform_driver max14577_muic_driver = { .driver = { - .name = DEV_NAME, + .name = "max14577-muic", .owner = THIS_MODULE, }, .probe = max14577_muic_probe,