summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/hid
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-04-24 21:44:27 -0700
committerFurquan Shaikh <furquan@google.com>2020-04-28 19:49:58 +0000
commit8220c4b7789769c529f506113b198367e09e6e58 (patch)
tree1e2517e17432b3816a9a56842c9d1ef865283916 /src/drivers/i2c/hid
parent4fc17b47a42e7e530a0921d62f399008541c0908 (diff)
drivers/i2c: Constify struct device * param to i2c fill ssdt callback
This change makes the struct device * param to callback function called by i2c_generic_fill_ssdt() as const. This is in preparation to make struct device * param to fill_ssdt as const. Change-Id: I7556b672a7b0172ded44747af394f5b32b6209aa Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40707 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/i2c/hid')
-rw-r--r--src/drivers/i2c/hid/hid.c2
1 files changed, 1 insertions, 1 deletions
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 = {