]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: video-i2c: Use GENMASK for masking bits
authorMoses Christopher Bollavarapu <mosescb.dev@gmail.com>
Tue, 19 Apr 2022 20:20:51 +0000 (22:20 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:16:49 +0000 (09:16 +0200)
commitac83c0694df645c87572cd18ecfdfa3850505de5
tree41cf200b96604a9d181a0add29df8cf3bf179dcf
parent121d500ed251f313e68537314c1dfa3ee3329337
media: i2c: video-i2c: Use GENMASK for masking bits

Replace 0x0380 with GENMASK(9, 7) to obtain 0b0000_0011_1000_0000

Signed-off-by: Moses Christopher Bollavarapu <mosescb.dev@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/video-i2c.c