ipmi: bt-bmc: Use registers directly
authorJoel Stanley <joel@jms.id.au>
Fri, 3 Sep 2021 05:10:39 +0000 (14:40 +0930)
committerCorey Minyard <cminyard@mvista.com>
Wed, 6 Oct 2021 11:53:37 +0000 (06:53 -0500)
commit396c84bbfd7906b4bd103741edf352918311c6d0
treef7fae11b2b442e9f87e22b138124641e4eb0b054
parent39ce73504695500e043d2851e3d4938fcae89399
ipmi: bt-bmc: Use registers directly

This driver was originally written to use the regmap abstraction with no
clear benefit. As the registers are always mmio and there is no sharing
of the region with other devices, we can safely read and write without
the locking that regmap provides.

This reduces the code size of the driver by about 25%.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20210903051039.307991-1-joel@jms.id.au>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/bt-bmc.c