UPSTREAM: drivers/spi/spi_flash: Pass in spi_slave structure as const to probe functions
Pointer to spi_slave structure can be passed in as const to spi flash
probe functions since the probe functions do not need to modify the
slave properties.
BUG=b:38330715
Change-Id: I817a51fc7b480f6532941fccd08a6179dbc14378
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: bd9e32efdd
Original-Change-Id: I956ee777c62dbb811fd6ce2aeb6ae090e1892acd
Original-Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19707
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-on: https://chromium-review.googlesource.com/509522
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
29c5bb32c4
commit
9f23a9748f
16 changed files with 28 additions and 27 deletions
|
|
@ -78,7 +78,7 @@ int spi_flash_probe(unsigned int bus, unsigned int cs, struct spi_flash *flash);
|
|||
* 0 = success
|
||||
* non-zero = error
|
||||
*/
|
||||
int spi_flash_programmer_probe(struct spi_slave *spi, int force,
|
||||
int spi_flash_programmer_probe(const struct spi_slave *spi, int force,
|
||||
struct spi_flash *flash);
|
||||
|
||||
/* All the following functions return 0 on success and non-zero on error. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue