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>
This commit is contained in:
Elyes HAOUAS 2020-03-30 16:46:18 +02:00 committed by Felix Held
parent e8fcf1bf8d
commit 7774de53d4
3 changed files with 4 additions and 7 deletions

View File

@ -31,8 +31,7 @@ uint8_t npcd378_hwm_read(const uint16_t iobase, const uint16_t reg);
* @param reg MSB is page, LSB sets the offset in selected page * @param reg MSB is page, LSB sets the offset in selected page
* @param val The value to write to HWM register * @param val The value to write to HWM register
*/ */
void npcd378_hwm_write(const uint16_t iobase, const uint16_t reg, void npcd378_hwm_write(const uint16_t iobase, const uint16_t reg, const uint8_t val);
const uint8_t val);
/* /*
* Notify SuperIO a host-to-device transfer is ongoing. * Notify SuperIO a host-to-device transfer is ongoing.

View File

@ -26,8 +26,7 @@ uint8_t npcd378_hwm_read(const uint16_t iobase, const uint16_t reg)
return reg8; return reg8;
} }
void npcd378_hwm_write(const uint16_t iobase, const uint16_t reg, void npcd378_hwm_write(const uint16_t iobase, const uint16_t reg, const uint8_t val)
const uint8_t val)
{ {
outb((reg >> 8) & 0xf, iobase + 0xff); outb((reg >> 8) & 0xf, iobase + 0xff);
outb(val, iobase + (reg & 0xff)); outb(val, iobase + (reg & 0xff));
@ -65,8 +64,7 @@ static void npcd378_init(struct device *dev)
case NPCD378_HWM: case NPCD378_HWM:
res = find_resource(dev, PNP_IDX_IO0); res = find_resource(dev, PNP_IDX_IO0);
if (!res || !res->base) { if (!res || !res->base) {
printk(BIOS_ERR, "NPCD378: LDN%u IOBASE not set.\n", printk(BIOS_ERR, "NPCD378: LDN%u IOBASE not set.\n", NPCD378_HWM);
NPCD378_HWM);
break; break;
} }