]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd05a2cb6e138e5ca0a7eea00fd424e76c9c9ab0b
treef7fae11b2b442e9f87e22b138124641e4eb0b054
parentc92a3d40c6bc06542d19b281cf9073209e2bd80d
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