mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
libflashrom: Deprecate probing v1 API
flashrom_flash_probe marked as deprecated and existing tests are updated to use probing v2 API Change-Id: I88f78ac0c93ce99a555b42f87aa0a695089e0b3f Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/88202 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
This commit is contained in:
@ -261,6 +261,8 @@ int flashrom_programmer_shutdown(struct flashrom_programmer *flashprog);
|
||||
*/
|
||||
|
||||
/**
|
||||
* @deprecated Use flashrom_flash_probe_v2 instead
|
||||
*
|
||||
* @brief Probe for a flash chip.
|
||||
*
|
||||
* Probes for a flash chip and returns a flash context, that can be used
|
||||
@ -278,7 +280,8 @@ int flashrom_programmer_shutdown(struct flashrom_programmer *flashprog);
|
||||
* 2 if no chip was found,
|
||||
* or 1 on any other error.
|
||||
*/
|
||||
int flashrom_flash_probe(struct flashrom_flashctx **flashctx, const struct flashrom_programmer *flashprog, const char *chip_name);
|
||||
int flashrom_flash_probe(struct flashrom_flashctx **flashctx, const struct flashrom_programmer *flashprog, const char *chip_name)
|
||||
__attribute__((deprecated("Use flashrom_flash_probe_v2 instead")));
|
||||
|
||||
/**
|
||||
* @brief Probe for a flash chip, v2
|
||||
|
Reference in New Issue
Block a user