Re: [PATCH v4 3/4] platform/x86: bitland-mifs-wmi: Add a quirk to hide extra controls

From: Mingyou Chen

Date: Wed Dec 02 2026 - 00:40:10 EST


On 26/12/01 08:03PM, Bozhen Peng wrote:
> The WUJIE15 PRO HPT does not support the GPU mode, keyboard RGB mode
> or fan-boost controls. Add a quirk to hide their sysfs attributes.
> Existing models keep the same attributes and permissions.
>
> No functional change intended.
>
> Signed-off-by: Bozhen Peng <bozhenpeng93@xxxxxxxxx>
> ---
> drivers/platform/x86/bitland-mifs-wmi.c | 23 ++++++++++++++++++++++-
> 1 file changed, 22 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/bitland-mifs-wmi.c b/drivers/platform/x86/bitland-mifs-wmi.c
> index 43f709714edac3d731378349f9fb5cbf6b1fc09b..9fa77e667a1a8ec7e152555fd47a56711e484095 100644
> --- a/drivers/platform/x86/bitland-mifs-wmi.c
> +++ b/drivers/platform/x86/bitland-mifs-wmi.c
> @@ -108,6 +108,7 @@ struct bitland_mifs_quirks {
> int (*check_performance_capability)(void);
> const struct bitland_hwmon_config *hwmon;
>
> + bool disable_extra_controls;

I'd suggest adding bitflags like the uniwill driver.
Then we can control what sysfs attrs to enable with the bitflag.

> bool return_code_at_end;
> bool skip_ac_type_check;
> };