]> git.baikalelectronics.ru Git - kernel.git/commit
tpm_tis: Use DEFINE_RES_MEM() to simplify code
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 07:49:55 +0000 (15:49 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 23 Jun 2021 13:51:03 +0000 (16:51 +0300)
commit0e0bf33a5502a889c262d7ae7ba808ce7bfc78f7
tree9da6a2856133df4415e65e4ee7234ad6e4322bac
parentbbaf02b7f1dff8fcba822aab4e3737b2bc007761
tpm_tis: Use DEFINE_RES_MEM() to simplify code

Use DEFINE_RES_MEM() to save a couple of lines of code, which is simpler
and more readable. The start address does not need to appear twice.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis.c