ofw_iicbus: Use uint32_t for iic bus address argument, not int.
The iicbus devinfo uses uint32_t for storing iic bus address and new method should comply with this fact. MFC with: 1bd3e8ba696633ccd7525030d951b58ade167814#
This commit is contained in:
parent
960ce3f7b2
commit
7504f32c2e
@ -52,7 +52,7 @@ static device_t ofw_iicbus_add_child(device_t dev, u_int order,
|
||||
static const struct ofw_bus_devinfo *ofw_iicbus_get_devinfo(device_t bus,
|
||||
device_t dev);
|
||||
static int ofw_iicbus_set_devinfo(device_t bus, device_t dev,
|
||||
phandle_t ofw_node, char *ofw_name, char *ofw_compat, int i2c_addr);
|
||||
phandle_t ofw_node, char *ofw_name, char *ofw_compat, uint32_t i2c_addr);
|
||||
|
||||
static device_method_t ofw_iicbus_methods[] = {
|
||||
/* Device interface */
|
||||
@ -247,7 +247,7 @@ ofw_iicbus_get_devinfo(device_t bus, device_t dev)
|
||||
|
||||
static int
|
||||
ofw_iicbus_set_devinfo(device_t bus, device_t dev, phandle_t ofw_node,
|
||||
char *ofw_name, char *ofw_compat, int i2c_addr)
|
||||
char *ofw_name, char *ofw_compat, uint32_t i2c_addr)
|
||||
{
|
||||
struct ofw_iicbus_devinfo *devi;
|
||||
|
||||
|
@ -39,5 +39,5 @@ METHOD int set_devinfo {
|
||||
phandle_t ofw_node;
|
||||
char *ofw_name;
|
||||
char *ofw_compat;
|
||||
int i2c_addr;
|
||||
uint32_t i2c_addr;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user