greybus: rename struct greybus_device
The greybus_device structure represents an Ara phone module.
It does *not* (necessarily) represent a UniPro device, nor any
device (like an i2c adapter) that might reside on an Ara module.
As such, rename struct greybus_device to be struct greybus_module.
Rename all symbols having that type to be "gmod" rather than "gdev".
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
diff --git a/drivers/staging/greybus/sdio-gb.c b/drivers/staging/greybus/sdio-gb.c
index 665767d..3cf258a 100644
--- a/drivers/staging/greybus/sdio-gb.c
+++ b/drivers/staging/greybus/sdio-gb.c
@@ -45,13 +45,13 @@
.get_ro = gb_sd_get_ro,
};
-int gb_sdio_probe(struct greybus_device *gdev,
+int gb_sdio_probe(struct greybus_module *gmod,
const struct greybus_module_id *id)
{
struct mmc_host *mmc;
struct gb_sdio_host *host;
- mmc = mmc_alloc_host(sizeof(struct gb_sdio_host), &gdev->dev);
+ mmc = mmc_alloc_host(sizeof(struct gb_sdio_host), &gmod->dev);
if (!mmc)
return -ENOMEM;
@@ -61,16 +61,16 @@
mmc->ops = &gb_sd_ops;
// FIXME - set up size limits we can handle.
- gdev->gb_sdio_host = host;
+ gmod->gb_sdio_host = host;
return 0;
}
-void gb_sdio_disconnect(struct greybus_device *gdev)
+void gb_sdio_disconnect(struct greybus_module *gmod)
{
struct mmc_host *mmc;
struct gb_sdio_host *host;
- host = gdev->gb_sdio_host;
+ host = gmod->gb_sdio_host;
mmc = host->mmc;
mmc_remove_host(mmc);