Merge tag 'acpi-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Aug 2022 20:26:09 +0000 (13:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Aug 2022 20:26:09 +0000 (13:26 -0700)
Pull more ACPI updates from Rafael Wysocki:
 "These fix up direct references to the fwnode field in struct device
  and extend ACPI device properties support.

  Specifics:

   - Replace direct references to the fwnode field in struct device with
     dev_fwnode() and device_match_fwnode() (Andy Shevchenko)

   - Make the ACPI code handling device properties support properties
     with buffer values (Sakari Ailus)"

* tag 'acpi-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  ACPI: property: Fix error handling in acpi_init_properties()
  ACPI: VIOT: Do not dereference fwnode in struct device
  ACPI: property: Read buffer properties as integers
  ACPI: property: Add support for parsing buffer property UUID
  ACPI: property: Unify integer value reading functions
  ACPI: property: Switch node property referencing from ifs to a switch
  ACPI: property: Move property ref argument parsing into a new function
  ACPI: property: Use acpi_object_type consistently in property ref parsing
  ACPI: property: Tie data nodes to acpi handles
  ACPI: property: Return type of acpi_add_nondev_subnodes() should be bool

1  2 
include/linux/acpi.h

diff --combined include/linux/acpi.h
index 7ee10b2848d5e50d5e1ab0ac2d9d359f33103233,ce00cca3f1bdf908b99c9aeb1532c29358164faf..6f64b2f3dc547951b2635beb1e6a11dbd033cbee
@@@ -764,7 -764,6 +764,7 @@@ static inline u64 acpi_arch_get_root_po
  #endif
  
  int acpi_get_local_address(acpi_handle handle, u32 *addr);
 +const char *acpi_get_subsystem_id(acpi_handle handle);
  
  #else /* !CONFIG_ACPI */
  
@@@ -1026,11 -1025,6 +1026,11 @@@ static inline int acpi_get_local_addres
        return -ENODEV;
  }
  
 +static inline const char *acpi_get_subsystem_id(acpi_handle handle)
 +{
 +      return ERR_PTR(-ENODEV);
 +}
 +
  static inline int acpi_register_wakeup_handler(int wake_irq,
        bool (*wakeup)(void *context), void *context)
  {
@@@ -1251,7 -1245,7 +1251,7 @@@ static inline bool acpi_dev_has_props(c
  
  struct acpi_device_properties *
  acpi_data_add_props(struct acpi_device_data *data, const guid_t *guid,
-                   const union acpi_object *properties);
+                   union acpi_object *properties);
  
  int acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname,
                       void **valptr);
@@@ -1437,6 -1431,7 +1437,6 @@@ int find_acpi_cpu_topology(unsigned in
  int find_acpi_cpu_topology_cluster(unsigned int cpu);
  int find_acpi_cpu_topology_package(unsigned int cpu);
  int find_acpi_cpu_topology_hetero_id(unsigned int cpu);
 -int find_acpi_cpu_cache_topology(unsigned int cpu, int level);
  #else
  static inline int acpi_pptt_cpu_is_thread(unsigned int cpu)
  {
@@@ -1458,6 -1453,10 +1458,6 @@@ static inline int find_acpi_cpu_topolog
  {
        return -EINVAL;
  }
 -static inline int find_acpi_cpu_cache_topology(unsigned int cpu, int level)
 -{
 -      return -EINVAL;
 -}
  #endif
  
  #ifdef CONFIG_ACPI_PCC