OSDN Git Service

irqchip/gic-v3-its: Refactor command encoding
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Dec 2016 17:11:52 +0000 (17:11 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 8 Feb 2017 13:48:22 +0000 (13:48 +0000)
commit4d36f136d57aea6f6440886106e246bb7e5918d8
tree56455b930ef706f38e48679df7caec78dcca1572
parent2fd632a00383e812db7186f903ebed808d9951bd
irqchip/gic-v3-its: Refactor command encoding

The way we encode the various ITS command fields is both tedious
and error prone. Let's introduce a helper function that performs
the encoding, and convert the existing encoders to use that
helper. It also has the advantage of expressing the encoding in
a way that matches the architecture specification.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its.c