From nobody Wed Dec 17 15:36:24 2025 Received: from linux1587.grserver.gr (linux1587.grserver.gr [185.138.42.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B03D1A5BAF; Mon, 17 Mar 2025 15:54:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.138.42.100 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742226852; cv=none; b=GEnC6koKcRzar8/ieHCL9dLLU/bRuZBe5/TCqDrv7r1wrEyxiDIwDGS83yJ4U8nfT3hWhvHyouEHKjrb5obHrb52iEITIhRHfljK552x+ZCudq8mxsXxnZj99fnxTrGrodaUeXliRJxdhjXBJRcSHCjrGeFPTmnWMg88a/vK+3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742226852; c=relaxed/simple; bh=tB5IqVaCrQjweRLudiZFfy5G6/+e6PG/KQ09ygaDgAc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f8wSoiV8kONMbAkLnjr4P3s6nIrhOJwxECo+9sw5BiW0OkNuoxZAGOXpRRGCQY4/ZXFz7+8UefiVlcccATPrhOy2E8Xu8VwAeXvqPQjnU1c9bm5bQW/WEip2/jXYZ8+nZF/vf4O7rN9WlAuYWzNhosRcvlU/oWbNbf4iVYgI/aI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=antheas.dev; spf=pass smtp.mailfrom=antheas.dev; dkim=pass (1024-bit key) header.d=antheas.dev header.i=@antheas.dev header.b=CFVwkXwk; arc=none smtp.client-ip=185.138.42.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=antheas.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antheas.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antheas.dev header.i=@antheas.dev header.b="CFVwkXwk" Received: from localhost.localdomain (unknown [IPv6:2a05:f6c2:511b:0:cbc0:999f:73ad:33bd]) by linux1587.grserver.gr (Postfix) with ESMTPSA id 248F62E09478; Mon, 17 Mar 2025 17:54:07 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antheas.dev; s=default; t=1742226848; bh=xOJBRmPb77Upc6malwv2xiNxBLox/UlI116EjsTj0x0=; h=From:To:Subject; b=CFVwkXwku8Yg0JUlIP+0nHaNQlYj3RJt7wm6LsRN1QAVYzDQ6FXMg1ehH3/u5KbxH ldYQjItWter2SUlhFDu44TL6U17U8GxkvcQcGj30JIPEFOxuW340tOmJJ3Xb/hiqr/ BbGNFH4HreT/0IiILYkXDZFi7OHoV19zZEwcAHjg= Authentication-Results: linux1587.grserver.gr; spf=pass (sender IP is 2a05:f6c2:511b:0:cbc0:999f:73ad:33bd) smtp.mailfrom=lkml@antheas.dev smtp.helo=localhost.localdomain Received-SPF: pass (linux1587.grserver.gr: connection is authenticated) From: Antheas Kapenekakis To: platform-driver-x86@vger.kernel.org Cc: linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-pm@vger.kernel.org, Guenter Roeck , Jean Delvare , Jonathan Corbet , Joaquin Ignacio Aramendia , Derek J Clark , Kevin Greenberg , Joshua Tam , Parth Menon , Eileen , linux-kernel@vger.kernel.org, sre@kernel.org, linux@weissschuh.net, Antheas Kapenekakis Subject: [PATCH v5 05/13] platform/x86: oxpec: Rename ec group to tt_toggle Date: Mon, 17 Mar 2025 16:53:41 +0100 Message-ID: <20250317155349.1236188-6-lkml@antheas.dev> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250317155349.1236188-1-lkml@antheas.dev> References: <20250317155349.1236188-1-lkml@antheas.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-PPP-Message-ID: <174222684857.25118.187880419746453389@linux1587.grserver.gr> X-PPP-Vhost: antheas.dev X-Virus-Scanned: clamav-milter 0.103.11 at linux1587.grserver.gr X-Virus-Status: Clean Content-Type: text/plain; charset="utf-8" Currently, the EC group is used for the turbo button. However, the next patch in the series adds support for the LED button in X1 devices, which is only applicable for X1 devices. Therefore, rename it to prepare for adding the second group. Reviewed-by: Derek J. Clark Signed-off-by: Antheas Kapenekakis --- drivers/platform/x86/oxpec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/oxpec.c b/drivers/platform/x86/oxpec.c index dc3a0871809cd..8836b3df0d57e 100644 --- a/drivers/platform/x86/oxpec.c +++ b/drivers/platform/x86/oxpec.c @@ -681,18 +681,18 @@ static const struct hwmon_channel_info * const oxp_pl= atform_sensors[] =3D { NULL, }; =20 -static struct attribute *oxp_ec_attrs[] =3D { +static struct attribute *oxp_tt_toggle_attrs[] =3D { &dev_attr_tt_toggle.attr, NULL }; =20 -static struct attribute_group oxp_ec_attribute_group =3D { +static struct attribute_group oxp_tt_toggle_attribute_group =3D { .is_visible =3D tt_toggle_is_visible, - .attrs =3D oxp_ec_attrs, + .attrs =3D oxp_tt_toggle_attrs, }; =20 static const struct attribute_group *oxp_ec_groups[] =3D { - &oxp_ec_attribute_group, + &oxp_tt_toggle_attribute_group, NULL }; =20 --=20 2.48.1