2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00

clk: tegra: Change to use DEFINE_SHOW_ATTRIBUTE macro

Use macro to simplify the code.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
Yangtao Li 2018-11-23 10:01:04 -05:00 committed by Stephen Boyd
parent 9579346ecf
commit e374e06880

View File

@ -1184,17 +1184,7 @@ static int attr_registers_show(struct seq_file *s, void *data)
return 0;
}
static int attr_registers_open(struct inode *inode, struct file *file)
{
return single_open(file, attr_registers_show, inode->i_private);
}
static const struct file_operations attr_registers_fops = {
.open = attr_registers_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
};
DEFINE_SHOW_ATTRIBUTE(attr_registers);
static void dfll_debug_init(struct tegra_dfll *td)
{