summaryrefslogtreecommitdiff
path: root/drivers/pch
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-02-01 01:40:42 -0800
committerBin Meng <bmeng.cn@gmail.com>2016-02-05 12:47:21 +0800
commit3e389d8ba666c5c2ad42021c2087630c1e412954 (patch)
tree17f0dd4428249c31e320f3eee4b9552ca9aa34dd /drivers/pch
parentd02be99e6774b99c27b7d4304865c7f45e1ac4b4 (diff)
downloadu-boot-3e389d8ba666c5c2ad42021c2087630c1e412954.tar.gz
u-boot-3e389d8ba666c5c2ad42021c2087630c1e412954.tar.bz2
u-boot-3e389d8ba666c5c2ad42021c2087630c1e412954.zip
dm: pch: Rename get_sbase op to get_spi_base
Spell out 'sbase' to 'spi_base' so that it looks clearer. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pch')
-rw-r--r--drivers/pch/pch-uclass.c6
-rw-r--r--drivers/pch/pch7.c4
-rw-r--r--drivers/pch/pch9.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pch/pch-uclass.c b/drivers/pch/pch-uclass.c
index cae4f50e57..b33d50201b 100644
--- a/drivers/pch/pch-uclass.c
+++ b/drivers/pch/pch-uclass.c
@@ -12,15 +12,15 @@
DECLARE_GLOBAL_DATA_PTR;
-int pch_get_sbase(struct udevice *dev, ulong *sbasep)
+int pch_get_spi_base(struct udevice *dev, ulong *sbasep)
{
struct pch_ops *ops = pch_get_ops(dev);
*sbasep = 0;
- if (!ops->get_sbase)
+ if (!ops->get_spi_base)
return -ENOSYS;
- return ops->get_sbase(dev, sbasep);
+ return ops->get_spi_base(dev, sbasep);
}
int pch_set_spi_protect(struct udevice *dev, bool protect)
diff --git a/drivers/pch/pch7.c b/drivers/pch/pch7.c
index 7c6a2ca086..fe1fb85131 100644
--- a/drivers/pch/pch7.c
+++ b/drivers/pch/pch7.c
@@ -10,7 +10,7 @@
#define BIOS_CTRL 0xd8
-static int pch7_get_sbase(struct udevice *dev, ulong *sbasep)
+static int pch7_get_spi_base(struct udevice *dev, ulong *sbasep)
{
u32 rcba;
@@ -38,7 +38,7 @@ static int pch7_set_spi_protect(struct udevice *dev, bool protect)
}
static const struct pch_ops pch7_ops = {
- .get_sbase = pch7_get_sbase,
+ .get_spi_base = pch7_get_spi_base,
.set_spi_protect = pch7_set_spi_protect,
};
diff --git a/drivers/pch/pch9.c b/drivers/pch/pch9.c
index 27a9fda0f4..5ac2e8a91b 100644
--- a/drivers/pch/pch9.c
+++ b/drivers/pch/pch9.c
@@ -10,7 +10,7 @@
#define SBASE_ADDR 0x54
-static int pch9_get_sbase(struct udevice *dev, ulong *sbasep)
+static int pch9_get_spi_base(struct udevice *dev, ulong *sbasep)
{
uint32_t sbase_addr;
@@ -21,7 +21,7 @@ static int pch9_get_sbase(struct udevice *dev, ulong *sbasep)
}
static const struct pch_ops pch9_ops = {
- .get_sbase = pch9_get_sbase,
+ .get_spi_base = pch9_get_spi_base,
};
static const struct udevice_id pch9_ids[] = {