On Mon, Dec 10, 2018 at 11:53 AM Patrick Delaunay
<patrick.delau...@st.com> wrote:
>
> Add Kernel style documentation for spi_flash_probe_bus_cs().
>
> Signed-off-by: Patrick Delaunay <patrick.delau...@st.com>
> ---
>
>  include/spi_flash.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/include/spi_flash.h b/include/spi_flash.h
> index e427e96..36565bb 100644
> --- a/include/spi_flash.h
> +++ b/include/spi_flash.h
> @@ -180,6 +180,20 @@ int spi_flash_erase_dm(struct udevice *dev, u32 offset, 
> size_t len);
>   */
>  int spl_flash_get_sw_write_prot(struct udevice *dev);
>
> +/**
> + * spi_flash_probe_bus_cs() - Find flash for selected SPI bus and chip select
> + *
> + * SPI bus probe and search flash chip for one chip select.
> + *
> + * @busnum:    SPI bus identifier
> + * @cs:                Chip select to look for
> + * @max_hz:    Requested spi frequency, 0 = get value from platdata
> + *             or device tree
> + * @spi_mode:  Requested spi mode, 0 = get value from platdata
> + *             or device tree
> + * @devp:      Returns pointer to the flash device, if found
> + * @return 0 if found, -ve on error
> + */
>  int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,
>                            unsigned int max_hz, unsigned int spi_mode,
>                            struct udevice **devp);

Reviewed-by: Simon Goldschmidt <simon.k.r.goldschm...@gmail.com>

Regards,
Simon
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to