Commit 1b94ad7c authored by Andy Shevchenko's avatar Andy Shevchenko Committed by David S. Miller

ACPI: utils: Add acpi_evaluate_dsm_typed() and acpi_check_dsm() stubs

When the ACPI part of a driver is optional the methods used in it
are expected to be available even if CONFIG_ACPI=n. This is not
the case for _DSM related methods. Add stubs for
acpi_evaluate_dsm_typed() and acpi_check_dsm() methods.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ba197fde
...@@ -950,6 +950,12 @@ static inline bool acpi_driver_match_device(struct device *dev, ...@@ -950,6 +950,12 @@ static inline bool acpi_driver_match_device(struct device *dev,
return false; return false;
} }
static inline bool acpi_check_dsm(acpi_handle handle, const guid_t *guid,
u64 rev, u64 funcs)
{
return false;
}
static inline union acpi_object *acpi_evaluate_dsm(acpi_handle handle, static inline union acpi_object *acpi_evaluate_dsm(acpi_handle handle,
const guid_t *guid, const guid_t *guid,
u64 rev, u64 func, u64 rev, u64 func,
...@@ -958,6 +964,15 @@ static inline union acpi_object *acpi_evaluate_dsm(acpi_handle handle, ...@@ -958,6 +964,15 @@ static inline union acpi_object *acpi_evaluate_dsm(acpi_handle handle,
return NULL; return NULL;
} }
static inline union acpi_object *acpi_evaluate_dsm_typed(acpi_handle handle,
const guid_t *guid,
u64 rev, u64 func,
union acpi_object *argv4,
acpi_object_type type)
{
return NULL;
}
static inline int acpi_device_uevent_modalias(struct device *dev, static inline int acpi_device_uevent_modalias(struct device *dev,
struct kobj_uevent_env *env) struct kobj_uevent_env *env)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment