mrjayviper Posted May 5, 2016 Share Posted May 5, 2016 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 More sharing options...
WaldMeister Posted May 6, 2016 Share Posted May 6, 2016 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. 1 Link to comment Share on other sites More sharing options...
mrjayviper Posted May 6, 2016 Author Share Posted May 6, 2016 looking at your answer, seems there's really no advantage over the other. more like personal choice? thanks again Link to comment Share on other sites More sharing options...
WaldMeister Posted May 6, 2016 Share Posted May 6, 2016 Indeed, just what is easier for you. I must note, for example Lable PIC is DSDT(hardware) specific, where HID is not. Went a bit retard on my previous post. 1 Link to comment Share on other sites More sharing options...
Recommended Posts