[media] rc: meson-ir: make use of the bitfield macros
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 12 Apr 2017 19:30:48 +0000 (16:30 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 11:54:59 +0000 (08:54 -0300)
commite7a937b5c4142c626766d00558ea4b761a00edaf
tree81876ce33409a99e41331ee1d29f56ead1b64c44
parent1ffc931c320a8ac5e106eac2aecaa1a4b4b2bea0
[media] rc: meson-ir: make use of the bitfield macros

Make use of the bitfield macros thus partially hiding the complexity
of dealing with bitfields.

The patch also includes a minor fix to REG0_RATE_MASK, so far it was
set to bit 0..10, but according to the spec it's bit 0..11.

[mchehab@s-opensource.com: readd REG1_MODE_SHIFT and REG2_MODE_SHIFT
 that got removed on the original patch, as this will be used on
 another patch]

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/meson-ir.c