summaryrefslogtreecommitdiff
path: root/src/soc
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
parent8220c4b7789769c529f506113b198367e09e6e58 (diff)
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')
-rw-r--r--src/soc/intel/apollolake/sd.c2
-rw-r--r--src/soc/intel/cannonlake/sd.c2
-rw-r--r--src/soc/intel/common/block/include/intelblocks/sd.h2
-rw-r--r--src/soc/intel/icelake/sd.c2
-rw-r--r--src/soc/intel/jasperlake/sd.c2
-rw-r--r--src/soc/intel/skylake/sd.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/soc/intel/apollolake/sd.c b/src/soc/intel/apollolake/sd.c
index 68c9bcad2f..1007eb129e 100644
--- a/src/soc/intel/apollolake/sd.c
+++ b/src/soc/intel/apollolake/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);
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);
diff --git a/src/soc/intel/common/block/include/intelblocks/sd.h b/src/soc/intel/common/block/include/intelblocks/sd.h
index 39ff533112..d0a160de29 100644
--- a/src/soc/intel/common/block/include/intelblocks/sd.h
+++ b/src/soc/intel/common/block/include/intelblocks/sd.h
@@ -10,6 +10,6 @@
* Fill the GPIO Interrupt or I/O information that will be used for the
* GPIO Connection Descriptor.
*/
-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);
#endif /* SOC_INTEL_COMMON_BLOCK_SD_H */
diff --git a/src/soc/intel/icelake/sd.c b/src/soc/intel/icelake/sd.c
index db22494208..f3c25e4cc3 100644
--- a/src/soc/intel/icelake/sd.c
+++ b/src/soc/intel/icelake/sd.c
@@ -4,7 +4,7 @@
#include <intelblocks/sd.h>
#include <soc/soc_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);
diff --git a/src/soc/intel/jasperlake/sd.c b/src/soc/intel/jasperlake/sd.c
index db22494208..f3c25e4cc3 100644
--- a/src/soc/intel/jasperlake/sd.c
+++ b/src/soc/intel/jasperlake/sd.c
@@ -4,7 +4,7 @@
#include <intelblocks/sd.h>
#include <soc/soc_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);
diff --git a/src/soc/intel/skylake/sd.c b/src/soc/intel/skylake/sd.c
index 70fc62fe94..c98f870d1e 100644
--- a/src/soc/intel/skylake/sd.c
+++ b/src/soc/intel/skylake/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);