]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: tegra: dfll: Fix debugfs_simple_attr.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Wed, 9 Jan 2019 12:50:21 +0000 (12:50 +0000)
committerStephen Boyd <sboyd@kernel.org>
Fri, 22 Feb 2019 18:01:21 +0000 (10:01 -0800)
commite7e6198c60566eda97655d495087fa73e1d7a1fd
tree9afe4f00aa1bce5205ce62f135cfc49c4ddf8200
parent8f99f5eab06cc837e196f87d4b1e1d14e5f1efe3
clk: tegra: dfll: Fix debugfs_simple_attr.cocci warnings

Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
for debugfs files.

Semantic patch information:
Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file()
imposes some significant overhead as compared to
DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe().

Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/tegra/clk-dfll.c