summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/i2c/generic/chip.h2
-rw-r--r--src/drivers/i2c/generic/generic.c2
-rw-r--r--src/drivers/i2c/hid/hid.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/i2c/generic/chip.h b/src/drivers/i2c/generic/chip.h
index ae7c0b42ae..b167b71bed 100644
--- a/src/drivers/i2c/generic/chip.h
+++ b/src/drivers/i2c/generic/chip.h
@@ -77,7 +77,7 @@ struct drivers_i2c_generic_config {
* config: Pointer to drivers_i2c_generic_config structure
*/
void i2c_generic_fill_ssdt(struct device *dev,
- void (*callback)(struct device *dev),
+ void (*callback)(const struct device *dev),
struct drivers_i2c_generic_config *config);
#endif /* __I2C_GENERIC_CHIP_H__ */
diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c
index 0466a6fe31..38fcfdc160 100644
--- a/src/drivers/i2c/generic/generic.c
+++ b/src/drivers/i2c/generic/generic.c
@@ -44,7 +44,7 @@ static int i2c_generic_write_gpio(struct acpi_gpio *gpio, int *curr_index)
}
void i2c_generic_fill_ssdt(struct device *dev,
- void (*callback)(struct device *dev),
+ void (*callback)(const struct device *dev),
struct drivers_i2c_generic_config *config)
{
const char *scope = acpi_device_scope(dev);
diff --git a/src/drivers/i2c/hid/hid.c b/src/drivers/i2c/hid/hid.c
index de43eb9ba5..0cb28bba65 100644
--- a/src/drivers/i2c/hid/hid.c
+++ b/src/drivers/i2c/hid/hid.c
@@ -10,7 +10,7 @@
#include <console/console.h>
#if CONFIG(HAVE_ACPI_TABLES)
-static void i2c_hid_fill_dsm(struct device *dev)
+static void i2c_hid_fill_dsm(const struct device *dev)
{
struct drivers_i2c_hid_config *config = dev->chip_info;
struct dsm_i2c_hid_config dsm_config = {