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>
This commit is contained in:
Furquan Shaikh 2020-04-24 21:52:27 -07:00
parent 8220c4b778
commit 3b54fdf282
6 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
#include <intelblocks/sd.h> #include <intelblocks/sd.h>
#include "chip.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); config_t *config = config_of(dev);

View File

@ -4,7 +4,7 @@
#include <intelblocks/sd.h> #include <intelblocks/sd.h>
#include "chip.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); config_t *config = config_of(dev);

View File

@ -10,6 +10,6 @@
* Fill the GPIO Interrupt or I/O information that will be used for the * Fill the GPIO Interrupt or I/O information that will be used for the
* GPIO Connection Descriptor. * 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 */ #endif /* SOC_INTEL_COMMON_BLOCK_SD_H */

View File

@ -4,7 +4,7 @@
#include <intelblocks/sd.h> #include <intelblocks/sd.h>
#include <soc/soc_chip.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); config_t *config = config_of(dev);

View File

@ -4,7 +4,7 @@
#include <intelblocks/sd.h> #include <intelblocks/sd.h>
#include <soc/soc_chip.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); config_t *config = config_of(dev);

View File

@ -4,7 +4,7 @@
#include <intelblocks/sd.h> #include <intelblocks/sd.h>
#include "chip.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); config_t *config = config_of(dev);