memory: tegra30-emc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
authorjing yangyang <jing.yangyang@zte.com.cn>
Sat, 21 Aug 2021 03:52:23 +0000 (20:52 -0700)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 15 Sep 2021 07:33:05 +0000 (09:33 +0200)
Fix the following coccicheck warning:
  drivers/memory/tegra/tegra30-emc.c:1322:0-23:WARNING:
    tegra_emc_debug_max_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE

Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
Link: https://lore.kernel.org/r/20210821035223.28282-1-jing.yangyang@zte.com.cn
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra30-emc.c

index 7e21a852f2e1ff362f62b5158944567ebe4e2ee1..80f98d717e139c710e22def0db4001b8fcad5ede 100644 (file)
@@ -1289,7 +1289,7 @@ static int tegra_emc_debug_min_rate_set(void *data, u64 rate)
        return 0;
 }
 
-DEFINE_SIMPLE_ATTRIBUTE(tegra_emc_debug_min_rate_fops,
+DEFINE_DEBUGFS_ATTRIBUTE(tegra_emc_debug_min_rate_fops,
                        tegra_emc_debug_min_rate_get,
                        tegra_emc_debug_min_rate_set, "%llu\n");
 
@@ -1319,7 +1319,7 @@ static int tegra_emc_debug_max_rate_set(void *data, u64 rate)
        return 0;
 }
 
-DEFINE_SIMPLE_ATTRIBUTE(tegra_emc_debug_max_rate_fops,
+DEFINE_DEBUGFS_ATTRIBUTE(tegra_emc_debug_max_rate_fops,
                        tegra_emc_debug_max_rate_get,
                        tegra_emc_debug_max_rate_set, "%llu\n");