memory: tegra210-emc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
authorJing Yangyang <jing.yangyang@zte.com.cn>
Wed, 25 Aug 2021 06:37:39 +0000 (23:37 -0700)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 15 Sep 2021 07:33:58 +0000 (09:33 +0200)
Fix the following coccicheck warning:
  drivers/memory/tegra/tegra210-emc-core.c:1665:0-23:WARNING
    tegra210_emc_debug_min_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/20210825063739.70260-1-deng.changcheng@zte.com.cn
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra210-emc-core.c

index 06c0f17fa429a437dce1a17f62bd9012700b9ecf..3b8284c6678ed6e32698b9f475418cb275e35214 100644 (file)
@@ -1692,7 +1692,7 @@ static int tegra210_emc_debug_max_rate_set(void *data, u64 rate)
        return 0;
 }
 
-DEFINE_SIMPLE_ATTRIBUTE(tegra210_emc_debug_max_rate_fops,
+DEFINE_DEBUGFS_ATTRIBUTE(tegra210_emc_debug_max_rate_fops,
                        tegra210_emc_debug_max_rate_get,
                        tegra210_emc_debug_max_rate_set, "%llu\n");
 
@@ -1723,7 +1723,7 @@ static int tegra210_emc_debug_temperature_set(void *data, u64 temperature)
        return 0;
 }
 
-DEFINE_SIMPLE_ATTRIBUTE(tegra210_emc_debug_temperature_fops,
+DEFINE_DEBUGFS_ATTRIBUTE(tegra210_emc_debug_temperature_fops,
                        tegra210_emc_debug_temperature_get,
                        tegra210_emc_debug_temperature_set, "%llu\n");