firmware: arm_scpi: improve handling of protocol and firmware version subfields
commit4864dca72d3fb2586ffee0c92bd13d02cedfee2f
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 4 Oct 2017 19:00:39 +0000 (4 21:00 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Oct 2017 10:48:41 +0000 (5 11:48 +0100)
treef67a310bbc86beb9b8ae6a2b72e8e4b7a2fb3044
parentd9e324ea138b43c2cfb6b01e3ae02a84be55aef4
firmware: arm_scpi: improve handling of protocol and firmware version subfields

By using FIELD_GET and proper masks we can avoid quite some shifting
and masking macro magic and make the code better readable.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scpi.c