Commit 7427e286 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'hsi-for-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi

Pull HIS update from Sebastian Reichel:
 "Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE"

* tag 'hsi-for-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi:
  HSI: omap_ssi_port: fix debugfs_simple_attr.cocci warnings
parents 039cd25f 1ff85bfa
...@@ -162,7 +162,7 @@ static int ssi_div_set(void *data, u64 val) ...@@ -162,7 +162,7 @@ static int ssi_div_set(void *data, u64 val)
return 0; return 0;
} }
DEFINE_SIMPLE_ATTRIBUTE(ssi_sst_div_fops, ssi_div_get, ssi_div_set, "%llu\n"); DEFINE_DEBUGFS_ATTRIBUTE(ssi_sst_div_fops, ssi_div_get, ssi_div_set, "%llu\n");
static int ssi_debug_add_port(struct omap_ssi_port *omap_port, static int ssi_debug_add_port(struct omap_ssi_port *omap_port,
struct dentry *dir) struct dentry *dir)
...@@ -177,7 +177,7 @@ static int ssi_debug_add_port(struct omap_ssi_port *omap_port, ...@@ -177,7 +177,7 @@ static int ssi_debug_add_port(struct omap_ssi_port *omap_port,
dir = debugfs_create_dir("sst", dir); dir = debugfs_create_dir("sst", dir);
if (!dir) if (!dir)
return -ENOMEM; return -ENOMEM;
debugfs_create_file("divisor", S_IRUGO | S_IWUSR, dir, port, debugfs_create_file_unsafe("divisor", 0644, dir, port,
&ssi_sst_div_fops); &ssi_sst_div_fops);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment