HSI: omap_ssi_port: fix debugfs_simple_attr.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Fri, 28 Dec 2018 07:33:35 +0000 (07:33 +0000)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 14 Feb 2019 11:36:21 +0000 (12:36 +0100)
commit1ff85bfa1614df6cacec780cd5922dc0b1c340c7
tree0f50968cfa58bf584acdc756ce5ae6a9713af382
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
HSI: omap_ssi_port: 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: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/hsi/controllers/omap_ssi_port.c