lkml.org 
[lkml]   [2018]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 31/33] ASoC: max98088: use match_string() helper
On Tue, May 22, 2018 at 3:30 PM, Yisheng Xie <xieyisheng1@huawei.com> wrote:

> hmm, you mean something like:
>
> int ret;
>
> ret = match_string(eq_mode_name, ARRAY_SIZE(eq_mode_name), name);
> if (ret < 0) /* Shouldn't happen */
> dev_err(component->dev, "Bad EQ channel name '%s'\n", name);
> return ret;

Yes. (But remove that useless comment).

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2018-05-22 19:23    [W:0.121 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site