Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2099432rwe; Fri, 2 Sep 2022 08:29:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR5fmRnrJgmSuLFyuO+6XGxgVKi15S5rj1tPDp1wd2F20iC4+RqI3oyQ7GpaHMAcyoQ5+NnD X-Received: by 2002:a17:90a:1b66:b0:1fa:bbb5:8a5 with SMTP id q93-20020a17090a1b6600b001fabbb508a5mr5400305pjq.216.1662132548050; Fri, 02 Sep 2022 08:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662132548; cv=none; d=google.com; s=arc-20160816; b=BUVX28SuRXoX3NuI7RORIGES0PpcyuY/rsR5vbUzDGeB61j2b224zEvX9t4vq9lR0p Giot8CzaLv653G+jCCk0K5sPkdhJAUoH8D9ZeisE4VjWXTj1FGl5uOkrxY4aM5x9neVu Dev0lxwDf1Bl6IZdidjfwLwG/oaHPRLlwljvl4rXfdhZkqR0efq6aHhkN4ujOTQpi7uH q3Z1IrPGyzkqJj8h+pWJxtjoK25Gvb+JFaogUQNXRErMD5LKccdqF1gcEm7/zmPCzp6h cajCxbjnHPvzs7hImYuvoq9BanxsbE9/6Jt11os1UJSh274VqND8T9JpMXydUXcUjWMb XKkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IFwaeOEQVnvBtnsVdMXlUA8Qos5OPIEBJFN91FlymAo=; b=N5QsxPeM1njDLiQcEfX/Ndz9R7t0MZ3FLBoBFUP9wQ5uLkazu4GI/V/dA2sbD4zHXC a5kqZT0nf4qpOJHyoVhhEEOOiMvdWWJeHn++IKDZjtmJu/P98sWOKBFbLnRARHTt9w25 ceKwnXgUpSNMuhMk06k/tiPJOzID9Mwn62dOJ9iGau554xmZvF0CjEs3OF7jUehWyNaL qJLE+I/D2ouIuS+4ws6cH2FUqZqGDKG+MeVbVf+omKhDdZtaA/5V07bWRs13FmswNYrb uyeZAaVZXDEEm/QSw9NGFd5dEvv7hJXRQlJHjL3E3JxFq8bM3sOwrFB2R3QktIAaPJ13 lxDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a170902e74400b00172d54cccddsi2697056plf.428.2022.09.02.08.28.57; Fri, 02 Sep 2022 08:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235936AbiIBOxC (ORCPT + 99 others); Fri, 2 Sep 2022 10:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236691AbiIBOwb (ORCPT ); Fri, 2 Sep 2022 10:52:31 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 083D632D9D for ; Fri, 2 Sep 2022 07:16:24 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="382287581" X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="382287581" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 07:16:24 -0700 X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="563975235" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 07:16:20 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oU7Sz-007Q79-0B; Fri, 02 Sep 2022 17:16:17 +0300 Date: Fri, 2 Sep 2022 17:16:16 +0300 From: Andy Shevchenko To: Cezary Rojewski Cc: alsa-devel@alsa-project.org, broonie@kernel.org, tiwai@suse.com, perex@perex.cz, amadeuszx.slawinski@linux.intel.com, pierre-louis.bossart@linux.intel.com, hdegoede@redhat.com, lgirdwood@gmail.com, kai.vehmanen@linux.intel.com, peter.ujfalusi@linux.intel.com, ranjani.sridharan@linux.intel.com, yung-chuan.liao@linux.intel.com, willy@infradead.org, linux-kernel@vger.kernel.org, andy@kernel.org, intel-poland@eclists.intel.com Subject: Re: [PATCH v5 0/2] lib/string_helpers: Introduce parse_int_array_user() Message-ID: References: <20220902133256.789165-1-cezary.rojewski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220902133256.789165-1-cezary.rojewski@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 02, 2022 at 03:32:54PM +0200, Cezary Rojewski wrote: > Continuation of recent upstream discussion [1] regarding user string > tokenization. > > First, parse_int_array_user() is introduced to allow for splitting > specified user string into a sequence of integers. Makes use of > get_options() internally so the parsing logic is not duplicated. > > With that done, redundant parts of the sound driver are removed. > > Originally similar functionality was added for the SOF sound driver. As > more users are on the horizon, it is desirable to update existing > string_helpers code and provide a unified solution. Feel free to route it via SOF or related tree since you have my tag for the library part. -- With Best Regards, Andy Shevchenko