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:
parent
8220c4b778
commit
3b54fdf282
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue