]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dm: pch: Rename get_sbase op to get_spi_base
authorBin Meng <bmeng.cn@gmail.com>
Mon, 1 Feb 2016 09:40:42 +0000 (01:40 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 5 Feb 2016 04:47:21 +0000 (12:47 +0800)
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>
arch/x86/cpu/ivybridge/bd82x6x.c
drivers/pch/pch-uclass.c
drivers/pch/pch7.c
drivers/pch/pch9.c
drivers/spi/ich.c
include/pch.h

index 16796dee46fa38fdd7708441e8944ed83ff7af9f..66a8414b10b54831aa38fa3a8eca3099f7f3dade 100644 (file)
@@ -170,7 +170,7 @@ static int bd82x6x_probe(struct udevice *dev)
        return 0;
 }
 
-static int bd82x6x_pch_get_sbase(struct udevice *dev, ulong *sbasep)
+static int bd82x6x_pch_get_spi_base(struct udevice *dev, ulong *sbasep)
 {
        u32 rcba;
 
@@ -201,7 +201,7 @@ static int bd82x6x_set_spi_protect(struct udevice *dev, bool protect)
 }
 
 static const struct pch_ops bd82x6x_pch_ops = {
-       .get_sbase      = bd82x6x_pch_get_sbase,
+       .get_spi_base   = bd82x6x_pch_get_spi_base,
        .set_spi_protect = bd82x6x_set_spi_protect,
 };
 
index cae4f50e57a401040c8966a8f370cccef0b5acd3..b33d50201b8f8ac2a86229e2e274b4ee7d9bbbba 100644 (file)
 
 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)
index 7c6a2ca086f3706817ba189216e2966d39411552..fe1fb85131e33f545412418e1ccb2a87297a010e 100644 (file)
@@ -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,
 };
 
index 27a9fda0f4e439b562b4276dd934f5ab39c633cc..5ac2e8a91bfc31ae82f554388069f4170e5e37cc 100644 (file)
@@ -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[] = {
index 1acdc88492d358f0ed1de9ac2281f392ede42fa0..00b2fed7b74aef30ec3352ad9699847d88151e7d 100644 (file)
@@ -119,7 +119,7 @@ static int ich_init_controller(struct udevice *dev,
        void *sbase;
 
        /* SBASE is similar */
-       pch_get_sbase(dev->parent, &sbase_addr);
+       pch_get_spi_base(dev->parent, &sbase_addr);
        sbase = (void *)sbase_addr;
        debug("%s: sbase=%p\n", __func__, sbase);
 
index f3899d822ff764d89b23a84e9f3d3d7d882dcc54..c04cfa32bc92b58376101f488071a62525400862 100644 (file)
 /* Operations for the Platform Controller Hub */
 struct pch_ops {
        /**
-        * get_sbase() - get the address of SPI base
+        * get_spi_base() - get the address of SPI base
         *
         * @dev:        PCH device to check
         * @sbasep:     Returns address of SPI base if available, else 0
         * @return 0 if OK, -ve on error (e.g. there is no SPI base)
         */
-       int (*get_sbase)(struct udevice *dev, ulong *sbasep);
+       int (*get_spi_base)(struct udevice *dev, ulong *sbasep);
 
        /**
         * set_spi_protect() - set whether SPI flash is protected or not
@@ -37,13 +37,13 @@ struct pch_ops {
 #define pch_get_ops(dev)        ((struct pch_ops *)(dev)->driver->ops)
 
 /**
- * pch_get_sbase() - get the address of SPI base
+ * pch_get_spi_base() - get the address of SPI base
  *
  * @dev:       PCH device to check
  * @sbasep:    Returns address of SPI base if available, else 0
  * @return 0 if OK, -ve on error (e.g. there is no SPI base)
  */
-int pch_get_sbase(struct udevice *dev, ulong *sbasep);
+int pch_get_spi_base(struct udevice *dev, ulong *sbasep);
 
 /**
  * set_spi_protect() - set whether SPI flash is protected or not