diff mbox

[U-Boot,01/20] dm: spi: Correct the comment on spi_get_ops()

Message ID 1429555051-22335-2-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass April 20, 2015, 6:37 p.m. UTC
This comment should refer to SPI, not serial.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/spi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jagan Teki April 22, 2015, 11:39 a.m. UTC | #1
On 21 April 2015 at 00:07, Simon Glass <sjg@chromium.org> wrote:
> This comment should refer to SPI, not serial.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  include/spi.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/spi.h b/include/spi.h
> index c58e453..aa0598b 100644
> --- a/include/spi.h
> +++ b/include/spi.h
> @@ -612,7 +612,7 @@ int sandbox_spi_get_emul(struct sandbox_state *state,
>                          struct udevice *bus, struct udevice *slave,
>                          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_emul_get_ops(dev)  ((struct dm_spi_emul_ops *)(dev)->driver->ops)
>  #endif /* CONFIG_DM_SPI */
> --
> 2.2.0.rc0.207.ga3a616c
>

Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>

thanks!
Simon Glass May 4, 2015, 2:17 p.m. UTC | #2
On 22 April 2015 at 05:39, Jagan Teki <jagannadh.teki@gmail.com> wrote:
> On 21 April 2015 at 00:07, Simon Glass <sjg@chromium.org> wrote:
>> This comment should refer to SPI, not serial.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> ---
>>
>>  include/spi.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/spi.h b/include/spi.h
>> index c58e453..aa0598b 100644
>> --- a/include/spi.h
>> +++ b/include/spi.h
>> @@ -612,7 +612,7 @@ int sandbox_spi_get_emul(struct sandbox_state *state,
>>                          struct udevice *bus, struct udevice *slave,
>>                          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_emul_get_ops(dev)  ((struct dm_spi_emul_ops *)(dev)->driver->ops)
>>  #endif /* CONFIG_DM_SPI */
>> --
>> 2.2.0.rc0.207.ga3a616c
>>
>
> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/include/spi.h b/include/spi.h
index c58e453..aa0598b 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -612,7 +612,7 @@  int sandbox_spi_get_emul(struct sandbox_state *state,
 			 struct udevice *bus, struct udevice *slave,
 			 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_emul_get_ops(dev)	((struct dm_spi_emul_ops *)(dev)->driver->ops)
 #endif /* CONFIG_DM_SPI */