lib: logic_pio: Enforce LOGIC_PIO_INDIRECT region ops are set at registration
authorJohn Garry <john.garry@huawei.com>
Mon, 4 Nov 2019 17:22:15 +0000 (01:22 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 5 Nov 2019 00:45:25 +0000 (08:45 +0800)
commit0376fa72a45536cc582aeef6566558d3fe318e2e
tree6eda21569587d7eaafb2293d71cdc9fe04e09f39
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
lib: logic_pio: Enforce LOGIC_PIO_INDIRECT region ops are set at registration

Since the only LOGIC_PIO_INDIRECT host (hisi-lpc) now sets the ops prior
to registration, enforce this check for accessors ops at registration
instead of in the IO port accessors to simplify and marginally optimise
the code.

A slight misalignment is also tidied.

Also add myself as an author.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
lib/logic_pio.c