]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: improve device detection code
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 May 2020 09:27:02 +0000 (11:27 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 12:50:58 +0000 (14:50 +0200)
commit46fb0d1df4150fc3f5746577f27630b30bf61a71
tree200368b94b91cac3c5b1463bd665d10d15cbc03c
parentcde58c6d80a34ed862f029bec75c96a51126950d
media: atomisp: improve device detection code

- Remove useless check if !dev at the probe function: if
  such function is called, the device is defined.
- Cleanup the PCI ID table using macros.
- Use the same macros at the version-dependent part of the
  atomisp_v4l2.c file;
- Add print messages to help understand what model the
  driver detect;
- If device is not valid, better explain why.

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