diff options
author | 2019-08-15 13:48:06 -0300 | |
---|---|---|
committer | 2019-08-26 10:52:36 -0300 | |
commit | 1a065ee3e97cc58ab900ccb7eb2b421fdab1d0dc (patch) | |
tree | 7dbf7d29c493494e21c4b977269453ba4cb6c9c1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | media: v4l2-core: introduce a helper to unregister a i2c subdev (diff) | |
download | linux-dev-1a065ee3e97cc58ab900ccb7eb2b421fdab1d0dc.tar.xz linux-dev-1a065ee3e97cc58ab900ccb7eb2b421fdab1d0dc.zip |
media: v4l2-core: Remove BUG() from i2c and spi helpers
Currently, the i2c and spi subdev creation helpers
are calling BUG() when passed a NULL v4l2_device parameter.
This makes little sense; simply returning NULL seems more
sensible.
These two helpers may already return NULL on error, so callers
should already be checking for this, or at least be prepared
for a NULL result.
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions