media: atomisp: improve sensor detection code to use _DSM table
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Jun 2020 09:46:03 +0000 (11:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 17:16:16 +0000 (19:16 +0200)
commit387041cda44eda841c1b39858e75a916b100778c
treed87554af1fbe9126b908bc402aa7aec6de94b4fc
parent69a03e36c7116ce575f7dd438f895e499aa6e790
media: atomisp: improve sensor detection code to use _DSM table

Instead of keep hardcoding device-specific tables, read them
directly from the ACPI BIOS, if available.

This method is know to work with Asus T101HA device. the
same table is also visible on EzPad devices. So, it seems
that at least some BIOSes use this method to pass data about
ISP2401-connected sensors.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/TODO
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c