]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: ds90ub960: Use enums for chip type and chip family
authorYemike Abhilash Chandra <y-abhilashchandra@ti.com>
Tue, 24 Feb 2026 11:39:22 +0000 (17:09 +0530)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:30 +0000 (01:05 +0100)
commit8bc79ab270fba606bb96c52356176d1e0957f8ba
tree8f6727c5be5c77a5caf49e7ebb410101933eb6f7
parent76c101e2e06393656731e35b9744b12f3b180999
media: i2c: ds90ub960: Use enums for chip type and chip family

Replace chip-specific boolean flags with chip_type and chip_family enums.
This simplifies the process of adding support for newer devices and also
improves code readability.

Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ds90ub960.c