drivers/virtio: fix typo deivce -> device

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-12-17 15:48:25 +08:00 committed by Xiang Xiao
parent 67c8159404
commit 86ffd45707
7 changed files with 7 additions and 7 deletions

View file

@ -242,7 +242,7 @@ static struct spi_dev_s *alt1250_poweron(bool keep_on)
up_mdelay(TIME_TO_STABLE_VDDIO); up_mdelay(TIME_TO_STABLE_VDDIO);
/* Initialize spi deivce */ /* Initialize spi device */
spi = cxd56_spibus_initialize(SPI_CH); spi = cxd56_spibus_initialize(SPI_CH);
if (!spi) if (!spi)

View file

@ -348,7 +348,7 @@ int thermal_dummy_init(void)
&g_dummy_zone_ops, &g_dummy_params); &g_dummy_zone_ops, &g_dummy_params);
if (zdev == NULL) if (zdev == NULL)
{ {
therr("Register zone deivce failed!\n"); therr("Register zone device failed!\n");
return -ENOTSUP; return -ENOTSUP;
} }

View file

@ -116,7 +116,7 @@ begin_packed_struct struct virtio_blk_config_s
struct virtio_blk_priv_s struct virtio_blk_priv_s
{ {
FAR struct virtio_device *vdev; /* Virtio deivce */ FAR struct virtio_device *vdev; /* Virtio device */
spinlock_t lock; /* Lock */ spinlock_t lock; /* Lock */
uint64_t nsectors; /* Sectore numbers */ uint64_t nsectors; /* Sectore numbers */
uint32_t block_size; /* Block size */ uint32_t block_size; /* Block size */

View file

@ -178,7 +178,7 @@
struct virtio_mmio_device_s struct virtio_mmio_device_s
{ {
struct virtio_device vdev; /* Virtio deivce */ struct virtio_device vdev; /* Virtio device */
struct metal_io_region shm_io; /* Share memory io region, virtqueue struct metal_io_region shm_io; /* Share memory io region, virtqueue
* use this io. * use this io.
*/ */

View file

@ -688,7 +688,7 @@ static int virtio_net_probe(FAR struct virtio_device *vdev)
#endif #endif
/* Register the net deivce */ /* Register the net device */
ret = netdev_lower_register(netdev, ret = netdev_lower_register(netdev,
#ifdef CONFIG_DRIVERS_WIFI_SIM #ifdef CONFIG_DRIVERS_WIFI_SIM

View file

@ -78,7 +78,7 @@ struct virtio_pci_ops_s
struct virtio_pci_device_s struct virtio_pci_device_s
{ {
struct virtio_device vdev; /* Virtio deivce */ struct virtio_device vdev; /* Virtio device */
FAR struct pci_device_s *dev; /* PCI device */ FAR struct pci_device_s *dev; /* PCI device */
FAR const struct virtio_pci_ops_s *ops; FAR const struct virtio_pci_ops_s *ops;
metal_phys_addr_t shm_phy; metal_phys_addr_t shm_phy;

View file

@ -211,7 +211,7 @@ static int virtio_rng_probe(FAR struct virtio_device *vdev)
priv->vdev = vdev; priv->vdev = vdev;
vdev->priv = priv; vdev->priv = priv;
/* Call openamp api to initialize the virtio deivce */ /* Call openamp api to initialize the virtio device */
virtio_set_status(vdev, VIRTIO_CONFIG_STATUS_DRIVER); virtio_set_status(vdev, VIRTIO_CONFIG_STATUS_DRIVER);
virtio_set_features(vdev, 0); virtio_set_features(vdev, 0);