tpm: add a helper to iterate on all tpm devices
authorPhilippe Reynes <philippe.reynes@softathome.com>
Thu, 9 Jan 2020 17:45:45 +0000 (18:45 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commitbb3f47eb78ea50bad5f1848bdac84a05116c395d
treea1c4cf49fa903ccb2c3f42ff16587ed6cddba447
parent28b417ce859490d6b06e71dbf4e842841e64d34d
tpm: add a helper to iterate on all tpm devices

This add a helper for_each_tpm_device that run
through all the tpm (1.x and 2.0) devices.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
include/tpm-common.h