diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2022-03-28 22:24:30 -0500 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-04-01 22:17:58 +0000 |
commit | 190086e6640d2b84626fed8324f89f86a01014ae (patch) | |
tree | c0b177f304084a192e220b1e5458a3c609a30128 /src/device/i2c_bus.c | |
parent | 77c1f5c03565726a0d5086bb2fc7be7c7a7f20c4 (diff) |
device/i2c_bus: Constify i2c_busdev and i2c_link
Change-Id: If795087ecdaea24ad7834dcc6d5bf6a72f2aea8f
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63208
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/device/i2c_bus.c')
-rw-r--r-- | src/device/i2c_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/i2c_bus.c b/src/device/i2c_bus.c index 597a530d88..a63086cf41 100644 --- a/src/device/i2c_bus.c +++ b/src/device/i2c_bus.c @@ -6,7 +6,7 @@ #include <device/i2c_bus.h> #include <commonlib/endian.h> -struct bus *i2c_link(struct device *const dev) +struct bus *i2c_link(const struct device *const dev) { if (!dev || !dev->bus) return NULL; |