aboutsummaryrefslogtreecommitdiff
path: root/src/superio/nuvoton/npcd378/superio.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-03-30 16:46:18 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-03-31 17:00:22 +0000
commit7774de53d49b612888603824f24ea5f258feeba1 (patch)
tree39b07e02c9b6f47e810fe5758d213e9ae7d0158c /src/superio/nuvoton/npcd378/superio.c
parente8fcf1bf8df1e94f84a15815343660360cd12299 (diff)
superio/nuvoton: Improve code formatting
Change-Id: I8cdfa5c3e3508ea8ad969df6513401611a066fc5 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39930 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/superio/nuvoton/npcd378/superio.c')
-rw-r--r--src/superio/nuvoton/npcd378/superio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/superio/nuvoton/npcd378/superio.c b/src/superio/nuvoton/npcd378/superio.c
index a07afdc79c..95a4babbb7 100644
--- a/src/superio/nuvoton/npcd378/superio.c
+++ b/src/superio/nuvoton/npcd378/superio.c
@@ -26,8 +26,7 @@ uint8_t npcd378_hwm_read(const uint16_t iobase, const uint16_t reg)
return reg8;
}
-void npcd378_hwm_write(const uint16_t iobase, const uint16_t reg,
- const uint8_t val)
+void npcd378_hwm_write(const uint16_t iobase, const uint16_t reg, const uint8_t val)
{
outb((reg >> 8) & 0xf, iobase + 0xff);
outb(val, iobase + (reg & 0xff));
@@ -65,8 +64,7 @@ static void npcd378_init(struct device *dev)
case NPCD378_HWM:
res = find_resource(dev, PNP_IDX_IO0);
if (!res || !res->base) {
- printk(BIOS_ERR, "NPCD378: LDN%u IOBASE not set.\n",
- NPCD378_HWM);
+ printk(BIOS_ERR, "NPCD378: LDN%u IOBASE not set.\n", NPCD378_HWM);
break;
}