Re: [PATCH v9 09/13] cpufreq: amd-pstate: add driver working mode switch support
From: Wyes Karny
Date: Thu Jan 05 2023 - 11:04:19 EST
Hi Perry,
On 12/25/2022 10:04 PM, Perry Yuan wrote:
-------------------------------->8--------------------------------
> +
> +static int amd_pstate_update_status(const char *buf, size_t size)
> +{
> + int ret;
> + int mode_idx;
> +
> + if (size > 7 || size < 3)
> + return -EINVAL;
> + mode_idx = get_mode_idx_from_str(buf, size);
if (size > 7 || size < 6) right?
because possible strings are: "disable", "passive" and "active".
--
Thanks & Regards,
Wyes