Re: [PATCH] intel_th: pti: Convert to use sysfs_match_string() helper

2018-05-21 Thread Yisheng Xie
Hi Andy, On 2018/5/22 6:16, Andy Shevchenko wrote: > On Wed, May 16, 2018 at 12:15 PM, Yisheng Xie wrote: >> The helper returns index of the matching string in an array, >> use it to simpler the code. > > IIRC I sent the patch with the same semantics week or so ago

Re: [PATCH] intel_th: pti: Convert to use sysfs_match_string() helper

2018-05-21 Thread Yisheng Xie
Hi Andy, On 2018/5/22 6:16, Andy Shevchenko wrote: > On Wed, May 16, 2018 at 12:15 PM, Yisheng Xie wrote: >> The helper returns index of the matching string in an array, >> use it to simpler the code. > > IIRC I sent the patch with the same semantics week or so ago against this > file. Right,

Re: [PATCH] intel_th: pti: Convert to use sysfs_match_string() helper

2018-05-21 Thread Andy Shevchenko
On Wed, May 16, 2018 at 12:15 PM, Yisheng Xie wrote: > The helper returns index of the matching string in an array, > use it to simpler the code. IIRC I sent the patch with the same semantics week or so ago against this file. > > Signed-off-by: Yisheng Xie

Re: [PATCH] intel_th: pti: Convert to use sysfs_match_string() helper

2018-05-21 Thread Andy Shevchenko
On Wed, May 16, 2018 at 12:15 PM, Yisheng Xie wrote: > The helper returns index of the matching string in an array, > use it to simpler the code. IIRC I sent the patch with the same semantics week or so ago against this file. > > Signed-off-by: Yisheng Xie > --- >

[PATCH] intel_th: pti: Convert to use sysfs_match_string() helper

2018-05-16 Thread Yisheng Xie
The helper returns index of the matching string in an array, use it to simpler the code. Signed-off-by: Yisheng Xie --- drivers/hwtracing/intel_th/pti.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hwtracing/intel_th/pti.c

[PATCH] intel_th: pti: Convert to use sysfs_match_string() helper

2018-05-16 Thread Yisheng Xie
The helper returns index of the matching string in an array, use it to simpler the code. Signed-off-by: Yisheng Xie --- drivers/hwtracing/intel_th/pti.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hwtracing/intel_th/pti.c