Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp708621ybl; Fri, 31 Jan 2020 06:39:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyfWjnpvYQ2U394yciSCBdKWLfZwDbIvv8KKOJB5qE50n0IN4ihel0JsYWvUQ657oFnUZXX X-Received: by 2002:a9d:5885:: with SMTP id x5mr7719057otg.132.1580481586844; Fri, 31 Jan 2020 06:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580481586; cv=none; d=google.com; s=arc-20160816; b=cwX/wZoc6AzM9FjP38WC6lhSdUdCbBeRl2JcQs1ZHULkS95BYi9VhpTwORFeN5jSE9 HEwyvacXdteHzGU3DrPTWwF7kXdakwdyW8Hy0WJLavEhpGAsd3GM9yHtGS3PisTMEjW6 L0381QHRtJ5svrxIQUYDOR1pXYM9XiQ78vJf5YxJweezgn1w446Bire7yNaxBrTBQiJp OYIKt1YtKBraEyQ7X29/PWNkBu6iGYhdmZXsSXSdQHJxNufDatKOxkltATdsA2+hggHh exF1UNtVVLX07Hz5TCRZ/Wg2JbX2zgnkXGj3iifP5wetVA0IFRiUBxjhFPZeJL+sVh4G rW/w== 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=b5KEBe0iFeYmuKIQan+ehc9tke7StpVhm0gqlFtimOg=; b=jKbB2mtJpqEo0s7tW3LW5HZrJQ/Efv1pRSZqo6VgJ5dQVA4LWvQi6OgmgyGtnwgoMF 565wXK1MWJ/IJF0ok7/6fWAKTpjRSGQuwhiMvuERbEQHxJPx4D+NKTC569jHtzkubmVF 2Eg3AybfvR1MS8CIOAGwEIq2uSTVqeI9MIYzZlu9tOJtGVZEBbNFCEivSNa3s7lEKoQY D5OWg7zMn0qFRhZGQ8P+DCBMRpN5zMok6Eyg4MHaw7PxxK/X5GuMHS27NcKRY8sJQi+g Zahmrv/LENR9NjWit0PhCOAYxLiASfkNF1+B2ufL6gzEjp/8Vgmf+8KbPqJfHec/uUtG Kqaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=Mo1hrMOy; 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 f5si5141698otp.129.2020.01.31.06.39.35; Fri, 31 Jan 2020 06:39:46 -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=Mo1hrMOy; 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 S1729074AbgAaOiG (ORCPT + 99 others); Fri, 31 Jan 2020 09:38:06 -0500 Received: from ned.t-8ch.de ([212.47.237.191]:37364 "EHLO ned.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729060AbgAaOiF (ORCPT ); Fri, 31 Jan 2020 09:38:05 -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=lQqAJct9Yuo28e2dXgyV7zV5l+ie2h3xCuN3ZDZgzwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mo1hrMOy2XUB0qm3UVpsPM6dGt9espikJCl1ifrhbiXLyphxJPouwAUYmvzto5AtI sjYqNhE04DJKJtg4C91uiQQFrgNQIEwTJ9LG2vWUvz/K0UWKnh0N01NmjSBMCnw1jC vKfaJNtCxJzOZdfWWJDOD8L76qh/mwXQR2ESg8ug= 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 3/3] platform/x86: thinkpad_acpi: restore old battery charge attributes Date: Fri, 31 Jan 2020 15:36:50 +0100 Message-Id: <20200131143650.4149-4-linux@weissschuh.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200131143650.4149-3-linux@weissschuh.net> References: <20200131143650.4149-1-linux@weissschuh.net> <20200131143650.4149-2-linux@weissschuh.net> <20200131143650.4149-3-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 Alias the new standard attributes to their previous names, preserving backwards compatibility. Signed-off-by: Thomas Weißschuh --- drivers/platform/x86/thinkpad_acpi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 5f0e3299778a..2cbcd2e3092f 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -9638,10 +9638,24 @@ static ssize_t charge_control_end_threshold_store(struct device *dev, static DEVICE_ATTR_RW(charge_control_start_threshold); static DEVICE_ATTR_RW(charge_control_end_threshold); +struct device_attribute dev_attr_charge_start_threshold = __ATTR( + charge_start_threshold, + 0644, + charge_control_start_threshold_show, + charge_control_start_threshold_store +); +struct device_attribute dev_attr_charge_stop_threshold = __ATTR( + charge_stop_threshold, + 0644, + charge_control_end_threshold_show, + charge_control_end_threshold_store +); static struct attribute *tpacpi_battery_attrs[] = { &dev_attr_charge_control_start_threshold.attr, &dev_attr_charge_control_end_threshold.attr, + &dev_attr_charge_start_threshold.attr, + &dev_attr_charge_stop_threshold.attr, NULL, }; -- 2.25.0