]> 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)
commitf85a11d8aa45fecdf66e6ab792083942b89e0497
tree200368b94b91cac3c5b1463bd665d10d15cbc03c
parent04e6eae9f70906c23d3e08ccbfe80c059ac2c23b
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