From patchwork Tue Jul 28 18:44:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 6887891 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BC3E5C05AC for ; Tue, 28 Jul 2015 18:45:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFD1E2076F for ; Tue, 28 Jul 2015 18:45:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E40C201CD for ; Tue, 28 Jul 2015 18:45:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753179AbbG1Spc (ORCPT ); Tue, 28 Jul 2015 14:45:32 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:34657 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752853AbbG1SpI (ORCPT ); Tue, 28 Jul 2015 14:45:08 -0400 Received: by wibud3 with SMTP id ud3so192473499wib.1; Tue, 28 Jul 2015 11:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=6WVNWSWu3/326Ek9wfs5CedWYZj+FT2W/z+lr68+5vQ=; b=BbJIGJa/GnkJFRjDaIdtCgv4/w2Lv6Zqahu/xXpvTbFQi3s/v5qsfKilHfELIHSrtB rqBMdzxZaY/J0OR0OlTp6Iia/FfpSK+XBpDhAW+iwrZ4XzGBT79LQ+cQu7jusz/nCJUe Nl82T/GV5aDPL9hTu8CC9faegVVAq+IOTz5KAUgniAvaJZUEZo6V3rMAkItRCI5Ks2FE MskpXOYg3Sub1M02333i8BZuI2UJxN3TXDj4bXYPOkJXZBvxI17+vH9EoWPTuaGvnrzT JERqSZzshYyYjvhnOwjNPilUGsnENv3FYJYBYZPH3gmACiHUKpcJp2rNOyx4G+8E8bxl OHuw== X-Received: by 10.194.24.196 with SMTP id w4mr67799070wjf.137.1438109106809; Tue, 28 Jul 2015 11:45:06 -0700 (PDT) Received: from Pali-Latitude.kolej.mff.cuni.cz (pali.kolej.mff.cuni.cz. [78.128.193.202]) by smtp.gmail.com with ESMTPSA id k12sm28136484wjw.4.2015.07.28.11.45.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 11:45:05 -0700 (PDT) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [PATCH] rx51-battery: Set name to rx51-battery Date: Tue, 28 Jul 2015 20:44:41 +0200 Message-Id: <1438109081-8204-1-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 For compatibility between board code and DT, set battery name to same value. Signed-off-by: Pali Rohár Acked-by: Pavel Machek --- drivers/power/rx51_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/rx51_battery.c b/drivers/power/rx51_battery.c index ac62069..af9383d 100644 --- a/drivers/power/rx51_battery.c +++ b/drivers/power/rx51_battery.c @@ -215,7 +215,7 @@ static int rx51_battery_probe(struct platform_device *pdev) platform_set_drvdata(pdev, di); di->dev = &pdev->dev; - di->bat_desc.name = dev_name(&pdev->dev); + di->bat_desc.name = "rx51-battery"; di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; di->bat_desc.properties = rx51_battery_props; di->bat_desc.num_properties = ARRAY_SIZE(rx51_battery_props);