Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp968502ybl; Wed, 29 Jan 2020 12:53:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwf+FVsq16rYHEzIPhVasTwxaUYs9EHUXC/mAQraTVdHSxkSwHSGrcivuYdwn+Oi1Dxt40d X-Received: by 2002:aca:1e11:: with SMTP id m17mr598924oic.5.1580331196109; Wed, 29 Jan 2020 12:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580331196; cv=none; d=google.com; s=arc-20160816; b=pTOIUKX5FTVQYDlSaUuAoJqxCNkqrTwu/2mf3UEc4+KJdWVZx1bVfeZgDY00vzDXj8 gP77tHz4C2hXKvduGiK2Fxtv8VizXcxiH0Zj9KdlGJmgmJM7JR5miFkfd0o2ExU/nwp2 Vwmgpi1P1N3MWCWTZyjXKEYpiqAUEK1oAFMJVLh8FL4Kct3Cb/F7zb5ayNBF4sYgxizL qxLLrT5vsUz92cvHn0kxxbdzSu7PqXqYrAaRKKopTX/vRKb/83W7HTJxcgx4eHEZ65GT OImrH0YzzwWX7UFs5LSl2QuK98bh1WTJoLkQ0cf42BCja96Vo/XkzuAYmvp8uT3Ff5tA saCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :from; bh=BZ5Zy3FQuCHBf3aceRBudR7nQlaJmtoPvRfFhZVKWHY=; b=i+bAaypvPWSkFLq1dTcunV8ajZYHbKwrILgvwBzPQiSfDK9ZB+SA6B623agEX7U9xa fnqxNR326Svy9wQl5MO2+Xqld54oAWNRUsvFo6iiQigocdcqP5ngy5X/KjvEqiB/zd8k MGFxTVUQT0urkg7q+G8HMf/NvUF1oNFN4zoz1eX2lcJ5LiVSnLG5u2R9bYlvz+UTwTis CHJ4bAsFRQ+nSREZ+1SeO7FZ+pEAWHyqJJSd0WnccaVkMPtoGkchR95pXzPbv3d08GhX pfwZbcSy04Y5me8elpWTwZy3p3RCiO953Gj69xUE4vegD6RZOq1ugGYwJCM9zdYpJeQm p1ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=EWhJ9v1z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si1763957oto.151.2020.01.29.12.52.50; Wed, 29 Jan 2020 12:53:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=EWhJ9v1z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726906AbgA2UvO (ORCPT + 99 others); Wed, 29 Jan 2020 15:51:14 -0500 Received: from ned.t-8ch.de ([212.47.237.191]:44320 "EHLO ned.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbgA2UvO (ORCPT ); Wed, 29 Jan 2020 15:51:14 -0500 X-Greylist: delayed 444 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Jan 2020 15:51:13 EST From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1580330625; bh=WQpcTQM59ICWLbo7nhLJM/haB2c2OkM0qICuhuLiH4o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EWhJ9v1zokSnYPGBPxBD2UCv3jZtj8tN+MLd2Uwthrn0J6F6KvR9IDyT6T7g3xpwz 1i9nmTfvCXY5WfoUWV18Rvx8gNkr7SHMHWHEcPTCNS4tw7GQY32mfHd/Jshs7Mw8wn NIodntsmFpEEUIarZyLnn9x3avTsjsTLXw3gZMLY= To: Henrique de Moraes Holschuh , Darren Hart , Andy Shevchenko Cc: ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH 2/3] platform/x86: thinkpad_acpi: use standard charge control attribute names Date: Wed, 29 Jan 2020 21:43:37 +0100 Message-Id: <20200129204338.4055-3-linux@weissschuh.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200129204338.4055-2-linux@weissschuh.net> References: <20200129204338.4055-1-linux@weissschuh.net> <20200129204338.4055-2-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The standard attributes were only introduced after the ones from thinkpad_acpi in commit 813cab8f3994 ("power: supply: core: Add CHARGE_CONTROL_{START_THRESHOLD,END_THRESHOLD} properties"). Signed-off-by: Thomas Weißschuh --- drivers/platform/x86/thinkpad_acpi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 2d3a99e3efb7..25e877789352 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -9608,40 +9608,40 @@ static ssize_t tpacpi_battery_show(int what, return sprintf(buf, "%d\n", ret); } -static ssize_t charge_start_threshold_show(struct device *device, +static ssize_t charge_control_start_threshold_show(struct device *device, struct device_attribute *attr, char *buf) { return tpacpi_battery_show(THRESHOLD_START, device, buf); } -static ssize_t charge_stop_threshold_show(struct device *device, +static ssize_t charge_control_stop_threshold_show(struct device *device, struct device_attribute *attr, char *buf) { return tpacpi_battery_show(THRESHOLD_STOP, device, buf); } -static ssize_t charge_start_threshold_store(struct device *dev, +static ssize_t charge_control_start_threshold_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { return tpacpi_battery_store(THRESHOLD_START, dev, buf, count); } -static ssize_t charge_stop_threshold_store(struct device *dev, +static ssize_t charge_control_stop_threshold_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { return tpacpi_battery_store(THRESHOLD_STOP, dev, buf, count); } -static DEVICE_ATTR_RW(charge_start_threshold); -static DEVICE_ATTR_RW(charge_stop_threshold); +static DEVICE_ATTR_RW(charge_control_start_threshold); +static DEVICE_ATTR_RW(charge_control_stop_threshold); static struct attribute *tpacpi_battery_attrs[] = { - &dev_attr_charge_start_threshold.attr, - &dev_attr_charge_stop_threshold.attr, + &dev_attr_charge_control_start_threshold.attr, + &dev_attr_charge_control_stop_threshold.attr, NULL, }; -- 2.25.0