summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/lenovo/h8/bluetooth.c2
-rw-r--r--src/ec/lenovo/h8/h8.h4
-rw-r--r--src/ec/lenovo/h8/wwan.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/lenovo/h8/bluetooth.c b/src/ec/lenovo/h8/bluetooth.c
index 0ee0c02195..561072ff1e 100644
--- a/src/ec/lenovo/h8/bluetooth.c
+++ b/src/ec/lenovo/h8/bluetooth.c
@@ -25,7 +25,7 @@ void h8_bluetooth_enable(int on)
/*
* Detect BDC on supported MBs.
*/
-bool h8_has_bdc(struct device *dev)
+bool h8_has_bdc(const struct device *dev)
{
struct ec_lenovo_h8_config *conf = dev->chip_info;
diff --git a/src/ec/lenovo/h8/h8.h b/src/ec/lenovo/h8/h8.h
index ecc9aabba6..8999cc377a 100644
--- a/src/ec/lenovo/h8/h8.h
+++ b/src/ec/lenovo/h8/h8.h
@@ -29,11 +29,11 @@ int h8_get_sense_ready(void);
void h8_bluetooth_enable(int on);
bool h8_bluetooth_nv_enable(void);
-bool h8_has_bdc(struct device *dev);
+bool h8_has_bdc(const struct device *dev);
void h8_wwan_enable(int on);
bool h8_wwan_nv_enable(void);
-bool h8_has_wwan(struct device *dev);
+bool h8_has_wwan(const struct device *dev);
void h8_ssdt_generator(struct device *dev);
diff --git a/src/ec/lenovo/h8/wwan.c b/src/ec/lenovo/h8/wwan.c
index cb60ce8616..4a07604133 100644
--- a/src/ec/lenovo/h8/wwan.c
+++ b/src/ec/lenovo/h8/wwan.c
@@ -23,7 +23,7 @@ void h8_wwan_enable(int on)
/*
* Detect WWAN on supported MBs.
*/
-bool h8_has_wwan(struct device *dev)
+bool h8_has_wwan(const struct device *dev)
{
struct ec_lenovo_h8_config *conf = dev->chip_info;