superio: Replace the indexed I/O functions
Replace the multiple indexed I/O read and write functions with common functions. Change-Id: Idfe7a8784c28d51b3fbcb2f4e26beaa0b91741a8 Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/10145 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
@@ -31,18 +31,6 @@
|
||||
#include <stdlib.h>
|
||||
#include "lpc47b397.h"
|
||||
|
||||
static void pnp_write_index(u16 port, u8 reg, u8 value)
|
||||
{
|
||||
outb(reg, port);
|
||||
outb(value, port + 1);
|
||||
}
|
||||
|
||||
static u8 pnp_read_index(u16 port, u8 reg)
|
||||
{
|
||||
outb(reg, port);
|
||||
return inb(port + 1);
|
||||
}
|
||||
|
||||
static void enable_hwm_smbus(struct device *dev)
|
||||
{
|
||||
/* Enable SensorBus register access. */
|
||||
|
Reference in New Issue
Block a user