git: 7504f32c2e59 - main - ofw_iicbus: Use uint32_t for iic bus address argument, not int.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 13:49:02 UTC
The branch main has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=7504f32c2e590a737b886f88a782df824db7dbbf commit 7504f32c2e590a737b886f88a782df824db7dbbf Author: Michal Meloun <mmel@FreeBSD.org> AuthorDate: 2022-02-20 11:24:15 +0000 Commit: Michal Meloun <mmel@FreeBSD.org> CommitDate: 2022-02-20 13:17:50 +0000 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# --- sys/dev/iicbus/ofw_iicbus.c | 4 ++-- sys/dev/iicbus/ofw_iicbus_if.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/iicbus/ofw_iicbus.c b/sys/dev/iicbus/ofw_iicbus.c index 2ccc9698e5bd..8449e6429b96 100644 --- a/sys/dev/iicbus/ofw_iicbus.c +++ b/sys/dev/iicbus/ofw_iicbus.c @@ -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; diff --git a/sys/dev/iicbus/ofw_iicbus_if.m b/sys/dev/iicbus/ofw_iicbus_if.m index a2b0bd2761db..942ddf5f2d34 100644 --- a/sys/dev/iicbus/ofw_iicbus_if.m +++ b/sys/dev/iicbus/ofw_iicbus_if.m @@ -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; };