Skip to content
Snippets Groups Projects
Commit bc5701e1 authored by Simon Glass's avatar Simon Glass
Browse files

dm: spi: Correct the comment on spi_get_ops()


This comment should refer to SPI, not serial.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
parent 527265d8
No related branches found
No related tags found
No related merge requests found
...@@ -616,7 +616,7 @@ int sandbox_spi_get_emul(struct sandbox_state *state, ...@@ -616,7 +616,7 @@ int sandbox_spi_get_emul(struct sandbox_state *state,
struct udevice *bus, struct udevice *slave, struct udevice *bus, struct udevice *slave,
struct udevice **emulp); struct udevice **emulp);
/* Access the serial operations for a device */ /* Access the operations for a SPI device */
#define spi_get_ops(dev) ((struct dm_spi_ops *)(dev)->driver->ops) #define spi_get_ops(dev) ((struct dm_spi_ops *)(dev)->driver->ops)
#define spi_emul_get_ops(dev) ((struct dm_spi_emul_ops *)(dev)->driver->ops) #define spi_emul_get_ops(dev) ((struct dm_spi_emul_ops *)(dev)->driver->ops)
#endif /* CONFIG_DM_SPI */ #endif /* CONFIG_DM_SPI */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment