mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
ACPI support update for 7.3-rc2
Drop two structure fields that have no more users after changes merged recently. -----BEGIN PGP SIGNATURE----- iQFGBAABCAAwFiEEcM8Aw/RY0dgsiRUR7l+9nS/U47UFAmqZxcYSHHJqd0Byand5 c29ja2kubmV0AAoJEO5fvZ0v1OO1UHsH/iULYau/G6m0B7SnA2atdgS/oBew1azb HctwcweATqZPD/E3mhpC/3sy5dBdhryRl/wZscjxDrfHXVsUApWB9zptNVOxbGiy wuXvHRiav0W//kkkZWLsIlSxZ+JBlK0IFYMlxv45TPnpa0OEnv7COn/LvV5ORoab w71ecOwIIxbf53zGulb3m6hgLv0fE43ZApphuvMWWeO1ZR7Z81u9Aiyp6bTmmjs5 TIwY5rrKPMiODZgJ1iDE6ZpxpRIyH1toIHbGqBzh6YdWlaRzX41I1ZYHQ4I+ntcP fVeGnEZbvvWiawSae15C+3RHevPQOTtoX56DiatpTvqdR1IC1nkqQEI= =4VUl -----END PGP SIGNATURE----- Merge tag 'acpi-7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm Pull ACPI fix from Rafael Wysocki: "Drop two structure fields that have no more users after recent changes" * tag 'acpi-7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: bus: Drop two fields from struct acpi_device_pnp
This commit is contained in:
commit
36b03c3e27
|
|
@ -28,9 +28,7 @@
|
|||
#include "internal.h"
|
||||
#include "sleep.h"
|
||||
|
||||
#define ACPI_BUS_CLASS "system_bus"
|
||||
#define ACPI_BUS_HID "LNXSYBUS"
|
||||
#define ACPI_BUS_DEVICE_NAME "System Bus"
|
||||
|
||||
#define INVALID_ACPI_HANDLE ((acpi_handle)ZERO_PAGE(0))
|
||||
|
||||
|
|
@ -1450,8 +1448,6 @@ static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,
|
|||
acpi_object_is_system_bus(handle)) {
|
||||
/* \_SB, \_TZ, LNXSYBUS */
|
||||
acpi_add_id(pnp, ACPI_BUS_HID);
|
||||
strscpy(pnp->device_name, ACPI_BUS_DEVICE_NAME);
|
||||
strscpy(pnp->device_class, ACPI_BUS_CLASS);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -202,12 +202,8 @@ struct acpi_device_dir {
|
|||
|
||||
/* Plug and Play */
|
||||
|
||||
#define MAX_ACPI_DEVICE_NAME_LEN 40
|
||||
#define MAX_ACPI_CLASS_NAME_LEN 20
|
||||
typedef char acpi_bus_id[8];
|
||||
typedef u64 acpi_bus_address;
|
||||
typedef char acpi_device_name[MAX_ACPI_DEVICE_NAME_LEN];
|
||||
typedef char acpi_device_class[MAX_ACPI_CLASS_NAME_LEN];
|
||||
|
||||
struct acpi_hardware_id {
|
||||
struct list_head list;
|
||||
|
|
@ -229,16 +225,12 @@ struct acpi_device_pnp {
|
|||
acpi_bus_address bus_address; /* _ADR */
|
||||
char *unique_id; /* _UID */
|
||||
struct list_head ids; /* _HID and _CIDs */
|
||||
acpi_device_name device_name; /* Driver-determined */
|
||||
acpi_device_class device_class; /* " */
|
||||
};
|
||||
|
||||
#define acpi_device_bid(d) ((d)->pnp.bus_id)
|
||||
#define acpi_device_adr(d) ((d)->pnp.bus_address)
|
||||
const char *acpi_device_hid(struct acpi_device *device);
|
||||
#define acpi_device_uid(d) ((d)->pnp.unique_id)
|
||||
#define acpi_device_name(d) ((d)->pnp.device_name)
|
||||
#define acpi_device_class(d) ((d)->pnp.device_class)
|
||||
|
||||
/* Power Management */
|
||||
|
||||
|
|
@ -578,6 +570,9 @@ int acpi_dev_for_each_child_reverse(struct acpi_device *adev,
|
|||
* ------
|
||||
*/
|
||||
|
||||
#define MAX_ACPI_CLASS_NAME_LEN 20
|
||||
typedef char acpi_device_class[MAX_ACPI_CLASS_NAME_LEN];
|
||||
|
||||
struct acpi_bus_event {
|
||||
struct list_head node;
|
||||
acpi_device_class device_class;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user