]> git.baikalelectronics.ru Git - kernel.git/commit
media: ccs: Replace somewhat harsh internal checks based on BUG with WARN_ON
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 27 May 2020 23:00:29 +0000 (01:00 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 11:27:31 +0000 (12:27 +0100)
commit756698b90b2fde59b6246d1d67dfd104eedf9521
tree1aa12248e817db125ce6851d0a70ea984100d1af
parent16e3995b048b24a2e36bb2608c8ce5dab010cb08
media: ccs: Replace somewhat harsh internal checks based on BUG with WARN_ON

If an internal driver error was encountered, BUG was issued. Instead, do
less harsh WARN_ON_ONCE and try to manage with the consequences.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-core.c