diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2020-02-14 16:14:18 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-12-03 14:27:31 +0300 |
commit | f86ae91627f13f8e1231a782c25c00f4dc08e0c9 (patch) | |
tree | 9aad42f5c8ea4b6cc38a39d2b53f3b98f2087d08 /drivers/media/i2c/ccs/ccs.h | |
parent | a6b396f410b1e77e567dc7ca6f581c3f91e6e7cf (diff) | |
download | linux-f86ae91627f13f8e1231a782c25c00f4dc08e0c9.tar.xz |
media: ccs: Combine revision number major and minor into one
The module revision number major and minor are both 8 bits while the
sensor revision number is 16 bits. Combine the module revision into one
number.
This also adds printing the lowest 8 bits of the module version through
the sysfs attribute.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ccs/ccs.h')
-rw-r--r-- | drivers/media/i2c/ccs/ccs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/ccs/ccs.h b/drivers/media/i2c/ccs/ccs.h index 2d1e8339f663..ad2ff5a74424 100644 --- a/drivers/media/i2c/ccs/ccs.h +++ b/drivers/media/i2c/ccs/ccs.h @@ -107,8 +107,7 @@ struct ccs_module_info { u32 smia_manufacturer_id; u32 mipi_manufacturer_id; u32 model_id; - u32 revision_number_major; - u32 revision_number_minor; + u32 revision_number; u32 module_year; u32 module_month; |