Re: [RFC v2 1/2] platform/x86: wmi: Allow retrieving the number of WMI object instances

From: James Seo
Date: Thu Apr 27 2023 - 02:19:13 EST


On Wed, Apr 26, 2023 at 11:28:47PM +0200, Armin Wolf wrote:
> Currently, the WMI driver core knows how many instances of a given
> WMI object exist, but WMI drivers cannot access this information.
> At the same time, some current and upcoming WMI drivers want to
> have access to this information. Add wmi_instance_count() and
> wmidev_instance_count() to allow WMI drivers to get the number of
> WMI object instances.
>
> Signed-off-by: Armin Wolf <W_Armin@xxxxxx>

Tested-by: James Seo <james@xxxxxxxxxx>