diff options
Diffstat (limited to 'Documentation/acpi')
-rw-r--r-- | Documentation/acpi/enumeration.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Documentation/acpi/enumeration.txt b/Documentation/acpi/enumeration.txt index b731b292e812..a91ec5af52df 100644 --- a/Documentation/acpi/enumeration.txt +++ b/Documentation/acpi/enumeration.txt | |||
@@ -347,13 +347,18 @@ For the first case, the MFD drivers do not need to do anything. The | |||
347 | resulting child platform device will have its ACPI_COMPANION() set to point | 347 | resulting child platform device will have its ACPI_COMPANION() set to point |
348 | to the parent device. | 348 | to the parent device. |
349 | 349 | ||
350 | If the ACPI namespace has a device that we can match using an ACPI id, | 350 | If the ACPI namespace has a device that we can match using an ACPI id or ACPI |
351 | the id should be set like: | 351 | adr, the cell should be set like: |
352 | |||
353 | static struct mfd_cell_acpi_match my_subdevice_cell_acpi_match = { | ||
354 | .pnpid = "XYZ0001", | ||
355 | .adr = 0, | ||
356 | }; | ||
352 | 357 | ||
353 | static struct mfd_cell my_subdevice_cell = { | 358 | static struct mfd_cell my_subdevice_cell = { |
354 | .name = "my_subdevice", | 359 | .name = "my_subdevice", |
355 | /* set the resources relative to the parent */ | 360 | /* set the resources relative to the parent */ |
356 | .acpi_pnpid = "XYZ0001", | 361 | .acpi_match = &my_subdevice_cell_acpi_match, |
357 | }; | 362 | }; |
358 | 363 | ||
359 | The ACPI id "XYZ0001" is then used to lookup an ACPI device directly under | 364 | The ACPI id "XYZ0001" is then used to lookup an ACPI device directly under |