summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/at24rf08c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-10-27 23:29:29 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-10-27 23:40:05 +0100
commit2c9d2cf75c6b12132f1f2c43ef9c01b51f741d26 (patch)
tree0417773090bacd02049d04ce11d27c84609d0272 /src/drivers/i2c/at24rf08c
parent06413ff513600ecb7ef7bf486d8871cce01b7d70 (diff)
downloadcoreboot-2c9d2cf75c6b12132f1f2c43ef9c01b51f741d26.tar.xz
{arch,cpu,drivers,ec}: Don't hide pointers behind typedefs
Change-Id: Id88bb4367d6045f6fbf185f0562ac72c04ee5f84 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: http://review.coreboot.org/7146 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/drivers/i2c/at24rf08c')
-rw-r--r--src/drivers/i2c/at24rf08c/at24rf08c.c6
-rw-r--r--src/drivers/i2c/at24rf08c/lenovo_serials.c14
2 files changed, 10 insertions, 10 deletions
diff --git a/src/drivers/i2c/at24rf08c/at24rf08c.c b/src/drivers/i2c/at24rf08c/at24rf08c.c
index a9cf2c5031..a03564f8db 100644
--- a/src/drivers/i2c/at24rf08c/at24rf08c.c
+++ b/src/drivers/i2c/at24rf08c/at24rf08c.c
@@ -25,7 +25,7 @@
#include <smbios.h>
#include <console/console.h>
-static void at24rf08c_init(device_t dev)
+static void at24rf08c_init(struct device *dev)
{
int i, j;
@@ -52,7 +52,7 @@ static void at24rf08c_init(device_t dev)
printk (BIOS_DEBUG, "init EEPROM done\n");
}
-static void at24rf08c_noop(device_t dummy)
+static void at24rf08c_noop(struct device *dummy)
{
}
@@ -63,7 +63,7 @@ static struct device_operations at24rf08c_operations = {
.init = at24rf08c_init,
};
-static void enable_dev(device_t dev)
+static void enable_dev(struct device *dev)
{
dev->ops = &at24rf08c_operations;
}
diff --git a/src/drivers/i2c/at24rf08c/lenovo_serials.c b/src/drivers/i2c/at24rf08c/lenovo_serials.c
index 53e76da033..65928be427 100644
--- a/src/drivers/i2c/at24rf08c/lenovo_serials.c
+++ b/src/drivers/i2c/at24rf08c/lenovo_serials.c
@@ -28,16 +28,16 @@
#define ERROR_STRING "*INVALID*"
-static device_t at24rf08c_find_bank(u8 bank)
+static struct device *at24rf08c_find_bank(u8 bank)
{
- device_t dev;
+ struct device *dev;
dev = dev_find_slot_on_smbus(1, 0x54 | bank);
if (!dev)
printk(BIOS_WARNING, "EEPROM not found\n");
return dev;
}
-static int at24rf08c_read_byte(device_t dev, u8 addr)
+static int at24rf08c_read_byte(struct device *dev, u8 addr)
{
int t = -1;
int j;
@@ -54,7 +54,7 @@ static int at24rf08c_read_byte(device_t dev, u8 addr)
return t;
}
-static void at24rf08c_read_string_dev(device_t dev, u8 start,
+static void at24rf08c_read_string_dev(struct device *dev, u8 start,
u8 len, char *result)
{
int i;
@@ -72,7 +72,7 @@ static void at24rf08c_read_string_dev(device_t dev, u8 start,
static void at24rf08c_read_string(u8 bank, u8 start, u8 len, char *result)
{
- device_t dev;
+ struct device *dev;
dev = at24rf08c_find_bank(bank);
if (dev == 0) {
@@ -124,7 +124,7 @@ void smbios_mainboard_set_uuid(u8 *uuid)
static char result[16];
unsigned i;
static int already_read;
- device_t dev;
+ struct device *dev;
const int remap[16] = {
/* UUID byteswap. */
3, 2, 1, 0, 5, 4, 7, 6, 8, 9, 10, 11, 12, 13, 14, 15
@@ -173,7 +173,7 @@ const char *smbios_mainboard_version(void)
{
static char result[100];
static int already_read;
- device_t dev;
+ struct device *dev;
int len;
if (already_read)