device: Always use a pair of driver and subdev names to find the device
Otherwise Megapixels fails to find the correct device on systems where there are multiple media devices handled by the same driver, like imx8mq.
$ ./megapixels-list-devices
imx-media (imx7-csi)
Bus Info: platform:30a90000.csi
Media Version: 331776
HW Revision: 0
Driver Version: 331776
Entities (4):
1 csi (20482)
4 csi capture (65537)
10 imx8mq-mipi-csi2 30a70000.csi (20482)
15 hi846 2-0020 (131073)
Interfaces (4):
50331654 (512 - 0) devnode 81:0
50331667 (515 - 0) devnode 81:1
50331669 (515 - 0) devnode 81:2
50331671 (515 - 0) devnode 81:3
Pads (6):
16777218 for device:1 (1)
16777219 for device:1 (2)
16777221 for device:4 (1)
16777227 for device:10 (5)
16777228 for device:10 (6)
16777232 for device:15 (2)
Links (7):
33554439 from:50331654 to:4 (268435459)
33554440 from:16777219 to:16777221 (3)
33554445 from:16777228 to:16777218 (3)
33554449 from:16777232 to:16777227 (3)
33554452 from:50331667 to:1 (268435459)
33554454 from:50331669 to:10 (268435459)
33554456 from:50331671 to:15 (268435459)
imx-media (imx7-csi)
Bus Info: platform:30b80000.csi
Media Version: 331776
HW Revision: 0
Driver Version: 331776
Entities (6):
1 csi (20482)
4 csi capture (65537)
10 imx8mq-mipi-csi2 30b60000.csi (20482)
15 s5k3l6xx 3-002d (131073)
19 white:torch (131074)
20 dw9714 3-000c (131075)
Interfaces (6):
50331654 (512 - 0) devnode 81:4
50331669 (515 - 0) devnode 81:5
50331671 (515 - 0) devnode 81:6
50331673 (515 - 0) devnode 81:7
50331675 (515 - 0) devnode 81:8
50331677 (515 - 0) devnode 81:9
Pads (6):
16777218 for device:1 (1)
16777219 for device:1 (2)
16777221 for device:4 (1)
16777227 for device:10 (5)
16777228 for device:10 (6)
16777232 for device:15 (2)
Links (9):
33554439 from:50331654 to:4 (268435459)
33554440 from:16777219 to:16777221 (3)
33554445 from:16777228 to:16777218 (3)
33554449 from:16777232 to:16777227 (3)
33554454 from:50331669 to:1 (268435459)
33554456 from:50331671 to:10 (268435459)
33554458 from:50331673 to:15 (268435459)
33554460 from:50331675 to:19 (268435459)
33554462 from:50331677 to:20 (268435459)