On 31/05/17 22:41, Andy Shevchenko wrote:
> acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16
> bytes. Instead we convert them to use guid_t type. At the same time we
> convert current users.
>
> acpi_str_to_uuid() becomes useless after the conversion and it's safe to
> get rid of it.
>
> Cc: Borislav Petkov <[email protected]>
> Cc: Dan Williams <[email protected]>
> Cc: Amir Goldstein <[email protected]>
> Cc: Jarkko Sakkinen <[email protected]>
> Reviewed-by: Jani Nikula <[email protected]>
> Acked-by: Jani Nikula <[email protected]>
> Cc: Ben Skeggs <[email protected]>
> Acked-by: Benjamin Tissoires <[email protected]>
> Acked-by: Joerg Roedel <[email protected]>
> Cc: Adrian Hunter <[email protected]>
> Cc: Yisen Zhuang <[email protected]>
> Acked-by: Bjorn Helgaas <[email protected]>
> Acked-by: Felipe Balbi <[email protected]>
> Acked-by: Mathias Nyman <[email protected]>
> Reviewed-by: Heikki Krogerus <[email protected]>
> Cc: Liam Girdwood <[email protected]>
> Cc: Mark Brown <[email protected]>
> Signed-off-by: Andy Shevchenko <[email protected]>
> ---
> drivers/acpi/acpi_extlog.c | 4 ++--
> drivers/acpi/bus.c | 23
> ----------------------
> drivers/acpi/nfit/core.c | 6 +++---
> drivers/acpi/utils.c | 16 +++++++--------
> drivers/char/tpm/tpm_crb.c | 9 ++++-----
> drivers/char/tpm/tpm_ppi.c | 20 ++++++++-----------
> drivers/gpu/drm/i915/intel_acpi.c | 14 +++++--------
> drivers/gpu/drm/nouveau/nouveau_acpi.c | 20 +++++++++----------
> drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c | 9 ++++-----
> drivers/hid/i2c-hid/i2c-hid.c | 9 ++++-----
> drivers/iommu/dmar.c | 11 +++++------
> drivers/mmc/host/sdhci-pci-core.c | 9 ++++-----
<SNIP>
> diff --git a/drivers/mmc/host/sdhci-pci-core.c
> b/drivers/mmc/host/sdhci-pci-core.c
> index 92fc3f7c538d..c942ec102c6a 100644
> --- a/drivers/mmc/host/sdhci-pci-core.c
> +++ b/drivers/mmc/host/sdhci-pci-core.c
> @@ -404,10 +404,9 @@ struct intel_host {
> bool d3_retune;
> };
>
> -const u8 intel_dsm_uuid[] = {
> - 0xA5, 0x3E, 0xC1, 0xF6, 0xCD, 0x65, 0x1F, 0x46,
> - 0xAB, 0x7A, 0x29, 0xF7, 0xE8, 0xD5, 0xBD, 0x61,
> -};
> +const guid_t intel_dsm_guid =
> + GUID(0xF6C13EA5, 0x65CD, 0x461F,
> + 0xAB, 0x7A, 0x29, 0xF7, 0xE8, 0xD5, 0xBD, 0x61);
>
> static int __intel_dsm(struct intel_host *intel_host, struct device *dev,
> unsigned int fn, u32 *result)
> @@ -416,7 +415,7 @@ static int __intel_dsm(struct intel_host *intel_host,
> struct device *dev,
> int err = 0;
> size_t len;
>
> - obj = acpi_evaluate_dsm(ACPI_HANDLE(dev), intel_dsm_uuid, 0, fn, NULL);
> + obj = acpi_evaluate_dsm(ACPI_HANDLE(dev), &intel_dsm_guid, 0, fn, NULL);
> if (!obj)
> return -EOPNOTSUPP;
>
For sdhci:
Acked-by: Adrian Hunter <[email protected]>