Jump to content

Is there a reason to use device ID over device label?


mrjayviper
 Share

4 posts in this topic

Recommended Posts

So I'm trying to create a DSDT patch and along the way I'm learning things.

 

I've notice some examples I've seen uses device ID while other uses the device label.

 

Any pros/cons over the other? I can see myself leaning towards device label since it's easier to read/relate?

 

thanks a lot! :)

 

example: both lines refer to the PIC device except the 2nd one uses the device ID



into device label PIC code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0000 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;


Link to comment
Share on other sites

Hi,

 

Both your examples are equal. "Search for xxx and xxx" 

 

The difference is, one searches for the name of a device, the other for the device id.

 

I would not search by device, but by code tbh. 

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...