提交 3ed46465 编写于 作者: M Mark Brown

ASoC: Remove unused step size from debugfs CODEC write function

We don't use the step size so there's no need to work it out.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: NLiam Girdwood <lrg@ti.com>
上级 c8f4b7fd
...@@ -244,7 +244,6 @@ static ssize_t codec_reg_write_file(struct file *file, ...@@ -244,7 +244,6 @@ static ssize_t codec_reg_write_file(struct file *file,
size_t buf_size; size_t buf_size;
char *start = buf; char *start = buf;
unsigned long reg, value; unsigned long reg, value;
int step = 1;
struct snd_soc_codec *codec = file->private_data; struct snd_soc_codec *codec = file->private_data;
buf_size = min(count, (sizeof(buf)-1)); buf_size = min(count, (sizeof(buf)-1));
...@@ -252,9 +251,6 @@ static ssize_t codec_reg_write_file(struct file *file, ...@@ -252,9 +251,6 @@ static ssize_t codec_reg_write_file(struct file *file,
return -EFAULT; return -EFAULT;
buf[buf_size] = 0; buf[buf_size] = 0;
if (codec->driver->reg_cache_step)
step = codec->driver->reg_cache_step;
while (*start == ' ') while (*start == ' ')
start++; start++;
reg = simple_strtoul(start, &start, 16); reg = simple_strtoul(start, &start, 16);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册