Home
last modified time | relevance | path

Searched hist:ad2f3b08d1ab17e481df753aae221f085fe1cc8a (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/acpi/
H A Dinternal.hdiff ad2f3b08d1ab17e481df753aae221f085fe1cc8a Thu Feb 10 14:05:33 CST 2022 Rafael J. Wysocki <rafael.j.wysocki@intel.com> ACPI: scan: Use ida_alloc() instead of ida_simple_get()

As recommended in include/linux/idr.h, use ida_alloc() instead of
ida_simple_get() for creating unique device object names and for
symmetry replace ida_simple_remove() with ida_free() (and fix up
the related overly long code line while at it).

Also drop the ACPI_MAX_DEVICE_INSTANCES limit that is not necessary
any more and may not be sufficient for future platforms.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
H A Dscan.cdiff ad2f3b08d1ab17e481df753aae221f085fe1cc8a Thu Feb 10 14:05:33 CST 2022 Rafael J. Wysocki <rafael.j.wysocki@intel.com> ACPI: scan: Use ida_alloc() instead of ida_simple_get()

As recommended in include/linux/idr.h, use ida_alloc() instead of
ida_simple_get() for creating unique device object names and for
symmetry replace ida_simple_remove() with ida_free() (and fix up
the related overly long code line while at it).

Also drop the ACPI_MAX_DEVICE_INSTANCES limit that is not necessary
any more and may not be sufficient for future platforms.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>