Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / platform / x86 / dell-wmi-descriptor.h
blob1f469fef153573bba71431c6b5046e94eafba1e4
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Dell WMI descriptor driver
5 * Copyright (c) 2017 Dell Inc.
6 */
8 #ifndef _DELL_WMI_DESCRIPTOR_H_
9 #define _DELL_WMI_DESCRIPTOR_H_
11 #include <linux/wmi.h>
13 /* possible return values:
14 * -ENODEV: Descriptor GUID missing from WMI bus
15 * -EPROBE_DEFER: probing for dell-wmi-descriptor not yet run
16 * 0: valid descriptor, successfully probed
17 * < 0: invalid descriptor, don't probe dependent devices
19 int dell_wmi_get_descriptor_valid(void);
21 bool dell_wmi_get_interface_version(u32 *version);
22 bool dell_wmi_get_size(u32 *size);
23 bool dell_wmi_get_hotfix(u32 *hotfix);
25 #endif