media: i2c: Add ov7251_detect_chip()
authorDaniel Scally <djrscally@gmail.com>
Tue, 15 Feb 2022 23:07:34 +0000 (23:07 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:43 +0000 (16:04 +0000)
commit568d240bbfc58c6435b08aad6288c0486bd569ef
treef1bbd12977f7dd955f7b912b54b3a5e5ad4e1e7c
parentfae56be69876e9b13c5b6c14334bab842cc512f1
media: i2c: Add ov7251_detect_chip()

.probe() is quite busy for this driver; make it cleaner by moving the
chip verification to a dedicated function.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
drivers/media/i2c/ov7251.c