From: "Kurt Borja" <kuurtb@gmail.com>
To: "Kurt Borja" <kuurtb@gmail.com>,
"Hans de Goede" <hdegoede@redhat.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Thomas Weißschuh" <linux@weissschuh.net>,
"Joshua Grisham" <josh@joshuagrisham.com>,
"Mark Pearson" <mpearson-lenovo@squebb.ca>,
"Armin Wolf" <W_Armin@gmx.de>,
"Mario Limonciello" <mario.limonciello@amd.com>
Cc: "Antheas Kapenekakis" <lkml@antheas.dev>,
"Derek J. Clark" <derekjohn.clark@gmail.com>,
"Prasanth Ksr" <prasanth.ksr@dell.com>,
"Jorge Lopez" <jorge.lopez2@hp.com>,
<platform-driver-x86@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <Dell.Client.Kernel@dell.com>
Subject: Re: [PATCH v3 3/6] platform/x86: firmware_attributes_class: Move header to include directory
Date: Sun, 22 Jun 2025 01:28:59 -0300 [thread overview]
Message-ID: <DASS1Q8GNS4V.1Z08IM0OKRY3Z@gmail.com> (raw)
In-Reply-To: <20250621-fw-attrs-api-v3-3-3dd55e463396@gmail.com>
On Sat Jun 21, 2025 at 9:04 PM -03, Kurt Borja wrote:
> Move firmware_attributes_class.h to include/linux/ to avoid hardcoding
> paths inside drivers/platform/x86/.
>
> Signed-off-by: Kurt Borja <kuurtb@gmail.com>
I forgot to add:
Suggested-by: Joshua Grisham <josh@joshuagrisham.com>
> ---
> drivers/platform/x86/dell/dell-wmi-sysman/sysman.c | 2 +-
> drivers/platform/x86/firmware_attributes_class.c | 2 +-
> drivers/platform/x86/hp/hp-bioscfg/bioscfg.c | 2 +-
> drivers/platform/x86/lenovo/think-lmi.c | 2 +-
> drivers/platform/x86/samsung-galaxybook.c | 2 +-
> {drivers/platform/x86 => include/linux}/firmware_attributes_class.h | 0
> 6 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c b/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
> index d00389b860e4ea0655c740c78bc3751f323b6370..3aec09987ab145508ed05b02e61a6d94edf79484 100644
> --- a/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
> +++ b/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
> @@ -12,8 +12,8 @@
> #include <linux/module.h>
> #include <linux/kernel.h>
> #include <linux/wmi.h>
> +#include <linux/firmware_attributes_class.h>
> #include "dell-wmi-sysman.h"
> -#include "../../firmware_attributes_class.h"
>
> #define MAX_TYPES 4
> #include <linux/nls.h>
> diff --git a/drivers/platform/x86/firmware_attributes_class.c b/drivers/platform/x86/firmware_attributes_class.c
> index 034f9254240b048f58c97c18062db03f771f8139..af39ed9ad2836147c98b4bb0b89e70e96ee34b71 100644
> --- a/drivers/platform/x86/firmware_attributes_class.c
> +++ b/drivers/platform/x86/firmware_attributes_class.c
> @@ -10,7 +10,7 @@
> #include <linux/slab.h>
> #include <linux/types.h>
> #include <linux/string_choices.h>
> -#include "firmware_attributes_class.h"
> +#include <linux/firmware_attributes_class.h>
>
> #define to_fwat_bool_data(_c) \
> container_of_const(_c, struct fwat_bool_data, group)
> diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
> index 13237890fc92002e7e730b1c235ddf068a6737cd..2df31af8a3b4ac88710af1fae2d5dabbb3185f1d 100644
> --- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
> +++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
> @@ -12,7 +12,7 @@
> #include <linux/kernel.h>
> #include <linux/wmi.h>
> #include "bioscfg.h"
> -#include "../../firmware_attributes_class.h"
> +#include <linux/firmware_attributes_class.h>
> #include <linux/nls.h>
> #include <linux/errno.h>
>
> diff --git a/drivers/platform/x86/lenovo/think-lmi.c b/drivers/platform/x86/lenovo/think-lmi.c
> index 34a47269e3d34d2eda6b71af73892656cd2bf67d..f61a6287eb0ebe9ac4c0c9445c3b54c12b276691 100644
> --- a/drivers/platform/x86/lenovo/think-lmi.c
> +++ b/drivers/platform/x86/lenovo/think-lmi.c
> @@ -20,7 +20,7 @@
> #include <linux/types.h>
> #include <linux/dmi.h>
> #include <linux/wmi.h>
> -#include "../firmware_attributes_class.h"
> +#include <linux/firmware_attributes_class.h>
> #include "think-lmi.h"
>
> static bool debug_support;
> diff --git a/drivers/platform/x86/samsung-galaxybook.c b/drivers/platform/x86/samsung-galaxybook.c
> index 5878a351993eb05a4c5c2c75b4915d972ce9becc..9a5a7b956a9f6a2738470e83ce93f4cccf4bf3b4 100644
> --- a/drivers/platform/x86/samsung-galaxybook.c
> +++ b/drivers/platform/x86/samsung-galaxybook.c
> @@ -28,7 +28,7 @@
> #include <linux/uuid.h>
> #include <linux/workqueue.h>
> #include <acpi/battery.h>
> -#include "firmware_attributes_class.h"
> +#include <linux/firmware_attributes_class.h>
>
> #define DRIVER_NAME "samsung-galaxybook"
>
> diff --git a/drivers/platform/x86/firmware_attributes_class.h b/include/linux/firmware_attributes_class.h
> similarity index 100%
> rename from drivers/platform/x86/firmware_attributes_class.h
> rename to include/linux/firmware_attributes_class.h
--
~ Kurt
next prev parent reply other threads:[~2025-06-22 4:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-22 0:04 [PATCH v3 0/6] platform/x86: firmware_attributes_class: Add a high level API Kurt Borja
2025-06-22 0:04 ` [PATCH v3 1/6] platform/x86: firmware_attributes_class: Add device initialization methods Kurt Borja
2025-06-22 0:04 ` [PATCH v3 2/6] platform/x86: firmware_attributes_class: Add high level API for the attributes interface Kurt Borja
2025-06-22 0:04 ` [PATCH v3 3/6] platform/x86: firmware_attributes_class: Move header to include directory Kurt Borja
2025-06-22 4:28 ` Kurt Borja [this message]
2025-06-22 0:04 ` [PATCH v3 4/6] platform/x86: samsung-galaxybook: Transition new firmware_attributes API Kurt Borja
2025-06-22 0:04 ` [PATCH v3 5/6] Documentation: ABI: Update sysfs-class-firmware-attributes documentation Kurt Borja
2025-06-22 0:04 ` [PATCH v3 6/6] MAINTAINERS: Add FIRMWARE ATTRIBUTES CLASS entry Kurt Borja
2025-06-22 3:01 ` [PATCH v3 0/6] platform/x86: firmware_attributes_class: Add a high level API Derek J. Clark
2025-06-22 3:27 ` Kurt Borja
2025-06-22 3:42 ` Derek J. Clark
2025-06-22 4:27 ` Kurt Borja
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DASS1Q8GNS4V.1Z08IM0OKRY3Z@gmail.com \
--to=kuurtb@gmail.com \
--cc=Dell.Client.Kernel@dell.com \
--cc=W_Armin@gmx.de \
--cc=derekjohn.clark@gmail.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jorge.lopez2@hp.com \
--cc=josh@joshuagrisham.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=lkml@antheas.dev \
--cc=mario.limonciello@amd.com \
--cc=mpearson-lenovo@squebb.ca \
--cc=platform-driver-x86@vger.kernel.org \
--cc=prasanth.ksr@dell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®