]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Use DEFINE_DEBUGFS_ATTRIBUTE instead of DEFINE_SIMPLE_ATTRIBUTE
authorZou Wei <zou_wei@huawei.com>
Thu, 23 Apr 2020 09:15:19 +0000 (17:15 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:21:01 +0000 (11:21 +0200)
commitdc4767ee74d800e365b44d14782460f071cf646b
treec7a36d6cc45e909fca9c5fe6c74fdfdb6f3b65da
parent669a3c0bd9d784c66a205e2cdbfddd16c4034940
mmc: core: Use DEFINE_DEBUGFS_ATTRIBUTE instead of DEFINE_SIMPLE_ATTRIBUTE

Fixes coccicheck warning:

drivers/mmc/core/debugfs.c:222:0-23: WARNING: mmc_clock_fops should be
defined with DEFINE_DEBUGFS_ATTRIBUTE

Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
for debugfs files

Fixes: b4ae90fa7afc7 ("mmc: add a file to debugfs for changing host clock at runtime")
Fixes: afca4e1d4466f ("mmc: core: no need to check return value of debugfs_create functions")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1587633319-19835-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/debugfs.c