diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-05-15 11:57:01 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-25 08:12:40 -0400 |
commit | fded837fd996880fd051e0ee0dbeee344cd084d2 (patch) | |
tree | 2dfef04c2522dc243137bee364621ccfc893a758 /include/tpm.h | |
parent | c617918764a519c41c93d6d6b08089859dc35f03 (diff) | |
download | u-boot-fded837fd996880fd051e0ee0dbeee344cd084d2.tar.gz |
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: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tpm.h')
-rw-r--r-- | include/tpm.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/tpm.h b/include/tpm.h index de084a517f..a89d689937 100644 --- a/include/tpm.h +++ b/include/tpm.h @@ -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, |