Skip to content
Snippets Groups Projects
Commit fded837f authored by Miquel Raynal's avatar Miquel Raynal Committed by Tom Rini
Browse files

tpm: use the BIT() macro where applicable


Fix following checkpatch.pl issue in TPM-related code:

    CHECK: Prefer using the BIT macro

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent c6179187
No related branches found
No related tags found
No related merge requests found
......@@ -82,13 +82,13 @@ enum tpm_capability_areas {
TPM_CAP_VERSION_VAL = 0x0000001A,
};
#define TPM_NV_PER_GLOBALLOCK (1U << 15)
#define TPM_NV_PER_PPREAD (1U << 16)
#define TPM_NV_PER_PPWRITE (1U << 0)
#define TPM_NV_PER_READ_STCLEAR (1U << 31)
#define TPM_NV_PER_WRITE_STCLEAR (1U << 14)
#define TPM_NV_PER_WRITEDEFINE (1U << 13)
#define TPM_NV_PER_WRITEALL (1U << 12)
#define TPM_NV_PER_GLOBALLOCK BIT(15)
#define TPM_NV_PER_PPREAD BIT(16)
#define TPM_NV_PER_PPWRITE BIT(0)
#define TPM_NV_PER_READ_STCLEAR BIT(31)
#define TPM_NV_PER_WRITE_STCLEAR BIT(14)
#define TPM_NV_PER_WRITEDEFINE BIT(13)
#define TPM_NV_PER_WRITEALL BIT(12)
enum {
TPM_PUBEK_SIZE = 256,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment