summaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-04-24 21:52:27 -0700
committerFurquan Shaikh <furquan@google.com>2020-04-28 19:50:07 +0000
commit3b54fdf282797ca2950341cdba32bb6f451ef53d (patch)
tree556fee0ea686f3d7f65fffc31dfe5d3936465e33 /src/soc/intel/cannonlake
parent8220c4b7789769c529f506113b198367e09e6e58 (diff)
downloadcoreboot-3b54fdf282797ca2950341cdba32bb6f451ef53d.tar.xz
soc/intel: Constify struct device *param to sd_fill_soc_gpio_info
sd_fill_soc_gpio_info() does not need to modify device structure. Hence, this change makes the struct device * parameter to this function as const. Change-Id: I237ee9640ec64061aa9ed7c65ea21740c40b6ae2 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40708 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/cannonlake')
-rw-r--r--src/soc/intel/cannonlake/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/cannonlake/sd.c b/src/soc/intel/cannonlake/sd.c
index 68c9bcad2f..1007eb129e 100644
--- a/src/soc/intel/cannonlake/sd.c
+++ b/src/soc/intel/cannonlake/sd.c
@@ -4,7 +4,7 @@
#include <intelblocks/sd.h>
#include "chip.h"
-int sd_fill_soc_gpio_info(struct acpi_gpio* gpio, struct device *dev)
+int sd_fill_soc_gpio_info(struct acpi_gpio* gpio, const struct device *dev)
{
config_t *config = config_of(dev);