diff options
author | Furquan Shaikh <furquan@google.com> | 2020-04-24 21:39:08 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-04-28 19:49:49 +0000 |
commit | 4fc17b47a42e7e530a0921d62f399008541c0908 (patch) | |
tree | 5e8a2c11728689e6e04deed7dfa5dc239efc6613 /src/ec | |
parent | 0f6e652f397672efcb920cf97a77f488bd82ad97 (diff) | |
download | coreboot-4fc17b47a42e7e530a0921d62f399008541c0908.tar.gz coreboot-4fc17b47a42e7e530a0921d62f399008541c0908.tar.bz2 coreboot-4fc17b47a42e7e530a0921d62f399008541c0908.zip |
ec/lenovo/h8: Constify struct device * parameter to h8_has_* functions
h8_has_bdc() and h8_has_wwan() do not need to modify the device
structure. Hence, this change makes the struct device * parameter to
these functions as const.
This is being done in preparation to make struct device * parameter to
fill_ssdt as const.
Change-Id: Id3d65d2de7b5161b0e7cff26055c00d5dae967dc
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40706
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/ec')
-rw-r--r-- | src/ec/lenovo/h8/bluetooth.c | 2 | ||||
-rw-r--r-- | src/ec/lenovo/h8/h8.h | 4 | ||||
-rw-r--r-- | src/ec/lenovo/h8/wwan.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/lenovo/h8/bluetooth.c b/src/ec/lenovo/h8/bluetooth.c index 0ee0c021955b..561072ff1ea3 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 ecc9aabba630..8999cc377ad9 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 cb60ce86163e..4a07604133cd 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; |