aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx/sata.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-04-28 04:57:27 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-06-22 11:54:08 +0000
commit8d9a6f16258ada4d4c995ad55f8230a99b4f7129 (patch)
tree2eaa46b8b6fc5a93e823a081a688f17deaf50ed6 /src/southbridge/intel/i82801gx/sata.c
parent1a1b04ea51686226e9dddbd9dd74550b340578a1 (diff)
sb/intel/i82801gx: Constify struct southbridge_intel_i82801gx_config
Change-Id: Ia5af84782d41a007be04c3dccc291b788ddfddfd Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40773 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/i82801gx/sata.c')
-rw-r--r--src/southbridge/intel/i82801gx/sata.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/southbridge/intel/i82801gx/sata.c b/src/southbridge/intel/i82801gx/sata.c
index c98a645db7..6efdef76cb 100644
--- a/src/southbridge/intel/i82801gx/sata.c
+++ b/src/southbridge/intel/i82801gx/sata.c
@@ -9,8 +9,6 @@
#include "i82801gx.h"
#include "sata.h"
-typedef struct southbridge_intel_i82801gx_config config_t;
-
static u8 get_ich7_sata_ports(void)
{
struct device *lpc;
@@ -77,7 +75,7 @@ static void sata_init(struct device *dev)
u8 ports;
/* Get the chip configuration */
- config_t *config = dev->chip_info;
+ const struct southbridge_intel_i82801gx_config *config = dev->chip_info;
printk(BIOS_DEBUG, "i82801gx_sata: initializing...\n");