Rename the anybus-s bus id from fieldbus_type to anybus_id, to
avoid confusion with an identically named variable in the
fieldbus_dev framework.
Although this value is called fieldbus_type in the anybus-s docs,
it acts like a bus id, so the name change is appropriate.
Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 struct anybuss_client {
        struct device dev;
        struct anybuss_host *host;
-       __be16 fieldbus_type;
+       __be16 anybus_id;
        /*
         * these can be optionally set by the client to receive event
         * notifications from the host.
        struct device_driver driver;
        int (*probe)(struct anybuss_client *adev);
        int (*remove)(struct anybuss_client *adev);
-       u16 fieldbus_type;
+       u16 anybus_id;
 };
 
 int anybuss_client_driver_register(struct anybuss_client_driver *drv);
 
                .name   = "hms-profinet",
                .owner  = THIS_MODULE,
        },
-       .fieldbus_type = 0x0089,
+       .anybus_id = 0x0089,
 };
 
 static int __init profinet_init(void)
 
        struct anybuss_client *adev =
                to_anybuss_client(dev);
 
-       return adrv->fieldbus_type == be16_to_cpu(adev->fieldbus_type);
+       return adrv->anybus_id == be16_to_cpu(adev->anybus_id);
 }
 
 static int anybus_bus_probe(struct device *dev)
                ret = -ENOMEM;
                goto err_kthread;
        }
-       cd->client->fieldbus_type = fieldbus_type;
+       cd->client->anybus_id = fieldbus_type;
        cd->client->host = cd;
        cd->client->dev.bus = &anybus_bus;
        cd->client->dev.parent = dev;