Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp968589ybl; Wed, 29 Jan 2020 12:53:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyZoZYAiVt7+vh1oi/uchiDzhntRplc0nRzrUIr6EHIBJmQ4H3sydpJxmTr7OhscP8pE2HP X-Received: by 2002:a05:6830:4cd:: with SMTP id s13mr886391otd.181.1580331203604; Wed, 29 Jan 2020 12:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580331203; cv=none; d=google.com; s=arc-20160816; b=tPkOACX1zMzjBEDBkTsYrxeMz9ELCYdQIUW9Rx2SL5CPfYYFBNGNe9kpwzhV2sDxLa Xht81/6ed6NOsLH08BztEwDDwWs8X3SlF2kJavBmeceN2FPEmNRE8wKdw4i4z44UG8dx 2QcfGgZ9PcQHv2tA9unMzsZ9aNiz3r1YJ6f3KUGFJd1EU+BrZ/+RPLroUz0WfWuhQDYx ZVNJk1fbPAHFNRD9oBsL6MyY2hr36Wbxe4GhIYily7orKxuSCBIFhw5EamVHBUqhwsmq QumTe1zJ10ebwcSuPh1CykQhyrBIEYHYI1ve+3PckiwTqHECT425Cd4jB84oRH0A3hM0 dP8Q== 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=9ryh1+gNWVUjNoPFRiM2IbDyrhi0uduFPBugfricVvk=; b=BmogkD/6ojSr8JmRE1s6uet7opUnM3BAgZtR6UnjgDTqexq87xLaBs496AN+Vkcp// NP2zI462Sw6CGHf0ICDvodegRzzr3of2lhajPQVMox7QeBRz8G6IOjsXyG0MrAu+MCcW +zAPqwq1R2PdwPRKu76wddAjfTupXqXYjEfhRZ/e0MbB5tzgLies3U61+7pw0H5/mW/f WaXmf+au5p3x1rei+EjdcWBBr/8e9ItX5K6vgd2v5RzXYjnv8QIrpp3RYeeejkHqzyDg qER+BVDBXox2j9Md0xYNFONszh1GKnsfod5CXUNPTl/oDjwSZE6ggQi8Jnz+qPkyu0T6 jpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=Lo3CWjR9; 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 k13si1596185oij.118.2020.01.29.12.53.10; Wed, 29 Jan 2020 12:53:23 -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=Lo3CWjR9; 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 S1727270AbgA2UvX (ORCPT + 99 others); Wed, 29 Jan 2020 15:51:23 -0500 Received: from ned.t-8ch.de ([212.47.237.191]:44316 "EHLO ned.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbgA2UvO (ORCPT ); Wed, 29 Jan 2020 15:51:14 -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=1580330625; bh=pD9DOP8o4NJhC/UfLuYM3FwTvcditszUCwuLr1jQOhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lo3CWjR9+PQBenoD9/aUC4/pQkmeeNo0mSR7gtu4Mr27/32rP6HNnF3bBvzIwddal AVjq3GFWu3rj3QbcU1DbDhvAPP/Rk/oaBtvk7/Lz1ojFclLcdPpouOdc1B9IhaGURT DtLRKedTklhZUD18jesweSiH97PFcxiqqYO9umoE= 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 3/3] platform/x86: thinkpad_acpi: restore old battery charge attributes Date: Wed, 29 Jan 2020 21:43:38 +0100 Message-Id: <20200129204338.4055-4-linux@weissschuh.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200129204338.4055-3-linux@weissschuh.net> References: <20200129204338.4055-1-linux@weissschuh.net> <20200129204338.4055-2-linux@weissschuh.net> <20200129204338.4055-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 25e877789352..443b2b16dc11 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -9638,10 +9638,24 @@ static ssize_t charge_control_stop_threshold_store(struct device *dev, static DEVICE_ATTR_RW(charge_control_start_threshold); static DEVICE_ATTR_RW(charge_control_stop_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_stop_threshold_show, + charge_control_stop_threshold_store +); static struct attribute *tpacpi_battery_attrs[] = { &dev_attr_charge_control_start_threshold.attr, &dev_attr_charge_control_stop_threshold.attr, + &dev_attr_charge_start_threshold.attr, + &dev_attr_charge_stop_threshold.attr, NULL, }; -- 2.25.0