Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp708788ybl; Fri, 31 Jan 2020 06:39:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyuawLmseq+N5c3o8N6GsSoR5x6jwTzskdh6JxFLquCA6hn7/YDo2P8U6nQWBr9+W0wRdEA X-Received: by 2002:a9d:7757:: with SMTP id t23mr8080277otl.315.1580481599624; Fri, 31 Jan 2020 06:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580481599; cv=none; d=google.com; s=arc-20160816; b=NyiifzB4vr6Su+JDdYkNjBXHrureta+up9iKX8sk6tRRAy1wm2/w1A/fqQmKeKEgph +48+N7KPw7W+WQNkoBaveDMOMXbC7qITwC41wRN1hQJorxpkdZGhAMnV8hNdkvAYms1b C4lYu2CFHAOd6YRaQ7k97vjyjCarNEzvLLozXsOxBjXSLvCZ6cCWj7/MnzYx5zE36uxu 6H+LudlxC+EooQFHpNGMxkdhuWgtZTeztO1qaFESxM28X3zeOs5SpfQ0/WIxSAtQgzgO zKmhxw0Xlr3pS+Gd+cvi1gwSfCEwsfMcUrKjXiwzXSst09fAWpV1ZjMu6rkuc9G731py 4b/g== 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=u0M6LBEQdbXU5TXe0ve5W0V5HVVFk9bgo7oa1CvkCw0=; b=Fhr9/QS3EvI73F4/u+Wy0ueGNzGBZAtf8rKNygnAUjtZzk1W72ZhxfwOsfgL8cm9pZ Z4cpl15C2fbSp04AvIYzQlbZyMWoPrMRunpj1x4Tl8HYJ+2w6YaZIffkS4emU+NhNwwP 1CpwXCaav6REdMF1DZmaaNsDQ4+KwlLD5TiySLnuUOiQK91hyeGgA/Vy2eDcpNTTae/4 yicyLgI3qqYcOTk5jWOJIXIp79P6cB8UesFl/xHNA074hFBfxVRlDNIxThoi2hAbB1uL ++DlFIfeoLtb6H0HF022O6ldcrydyfgi8tP4MezND/mWLy63khAu48mxME5dy2SdmZsN //9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=ZVQtTJaW; 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 n21si4424256oic.0.2020.01.31.06.39.48; Fri, 31 Jan 2020 06:39:59 -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=ZVQtTJaW; 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 S1729086AbgAaOiM (ORCPT + 99 others); Fri, 31 Jan 2020 09:38:12 -0500 Received: from ned.t-8ch.de ([212.47.237.191]:37370 "EHLO ned.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728827AbgAaOiL (ORCPT ); Fri, 31 Jan 2020 09:38:11 -0500 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1580481445; bh=d/HBCqKEtu13ihHegP4tYREK/3yRPONvTZnf4qI8ZCw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZVQtTJaW72oLYszbZhRPQo4xGsWLMoyESnDL+o7J319cFH+B9GCpB2i1pYD30eRyp K8HQR2ycFZMprJJc9VGildCStKEd3GVi6ufrcnCW+YtMThGan2MCY4oV/uddjiBNoe FbwMa/wwxGUWrzjah06clsXgCfiDukyQ2j0vNUz8= 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 v2 2/3] platform/x86: thinkpad_acpi: use standard charge control attribute names Date: Fri, 31 Jan 2020 15:36:49 +0100 Message-Id: <20200131143650.4149-3-linux@weissschuh.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200131143650.4149-2-linux@weissschuh.net> References: <20200131143650.4149-1-linux@weissschuh.net> <20200131143650.4149-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..5f0e3299778a 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_end_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_end_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_end_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_end_threshold.attr, NULL, }; -- 2.25.0