]> git.baikalelectronics.ru Git - kernel.git/commit
media: aspeed: Use FIELD_GET to improve readability
authorJammy Huang <jammy_huang@aspeedtech.com>
Tue, 25 Jan 2022 06:44:08 +0000 (07:44 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jan 2022 18:32:50 +0000 (19:32 +0100)
commitf8abb01ff813cc9ab5c9b7fdad5a4d254d527a7a
tree5445a2aa12f36536d55056c2d20e45a797341ad6
parentb1d7c0d4ce4b7fa92aae93966ff50049c2b3d4cc
media: aspeed: Use FIELD_GET to improve readability

Use the bitfield macro FIELD_GET, and GENMASK to do the shift and mask in
one go for reg values.

Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/aspeed-video.c