projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm: Use access methods for dev/uclass private data
[platform/kernel/u-boot.git]
/
drivers
/
spi
/
mxs_spi.c
diff --git
a/drivers/spi/mxs_spi.c
b/drivers/spi/mxs_spi.c
index
fb0af02
..
7f632d9
100644
(file)
--- a/
drivers/spi/mxs_spi.c
+++ b/
drivers/spi/mxs_spi.c
@@
-41,7
+41,7
@@
#define MXS_SSP_IMX23_CLKID_SSP0 33
#define MXS_SSP_IMX28_CLKID_SSP0 46
#define MXS_SSP_IMX23_CLKID_SSP0 33
#define MXS_SSP_IMX28_CLKID_SSP0 46
-struct mxs_spi_plat
data
{
+struct mxs_spi_plat {
#if CONFIG_IS_ENABLED(OF_PLATDATA)
struct dtd_fsl_imx23_spi dtplat;
#endif
#if CONFIG_IS_ENABLED(OF_PLATDATA)
struct dtd_fsl_imx23_spi dtplat;
#endif
@@
-311,7
+311,7
@@
int mxs_spi_xfer(struct udevice *dev, unsigned int bitlen,
static int mxs_spi_probe(struct udevice *bus)
{
static int mxs_spi_probe(struct udevice *bus)
{
- struct mxs_spi_plat
data *plat = dev_get_platdata
(bus);
+ struct mxs_spi_plat
*plat = dev_get_plat
(bus);
struct mxs_spi_priv *priv = dev_get_priv(bus);
int ret;
struct mxs_spi_priv *priv = dev_get_priv(bus);
int ret;
@@
-441,9
+441,9
@@
static const struct dm_spi_ops mxs_spi_ops = {
};
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
};
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
-static int mxs_of
data_to_platdata
(struct udevice *bus)
+static int mxs_of
_to_plat
(struct udevice *bus)
{
{
- struct mxs_spi_plat
data *plat = bus->platdata
;
+ struct mxs_spi_plat
*plat = dev_get_plat(bus)
;
u32 prop[2];
int ret;
u32 prop[2];
int ret;
@@
-485,11
+485,11
@@
U_BOOT_DRIVER(fsl_imx23_spi) = {
.id = UCLASS_SPI,
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
.of_match = mxs_spi_ids,
.id = UCLASS_SPI,
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
.of_match = mxs_spi_ids,
- .of
data_to_platdata = mxs_ofdata_to_platdata
,
+ .of
_to_plat = mxs_of_to_plat
,
#endif
#endif
- .plat
data_auto_alloc_size = sizeof(struct mxs_spi_platdata
),
+ .plat
_auto = sizeof(struct mxs_spi_plat
),
.ops = &mxs_spi_ops,
.ops = &mxs_spi_ops,
- .priv_auto
_alloc_size
= sizeof(struct mxs_spi_priv),
+ .priv_auto
= sizeof(struct mxs_spi_priv),
.probe = mxs_spi_probe,
};
.probe = mxs_spi_probe,
};