From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC63CC433EF for ; Wed, 6 Oct 2021 16:24:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A70E26112D for ; Wed, 6 Oct 2021 16:24:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239316AbhJFQ0i (ORCPT ); Wed, 6 Oct 2021 12:26:38 -0400 Received: from mga17.intel.com ([192.55.52.151]:27558 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231998AbhJFQ0h (ORCPT ); Wed, 6 Oct 2021 12:26:37 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10129"; a="206845152" X-IronPort-AV: E=Sophos;i="5.85,352,1624345200"; d="scan'208";a="206845152" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2021 09:24:45 -0700 X-IronPort-AV: E=Sophos;i="5.85,352,1624345200"; d="scan'208";a="713002556" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2021 09:24:41 -0700 Received: from andy by smile with local (Exim 4.95) (envelope-from ) id 1mY9ie-009Fpl-Qk; Wed, 06 Oct 2021 19:24:36 +0300 Date: Wed, 6 Oct 2021 19:24:36 +0300 From: Andy Shevchenko To: Pierre-Louis Bossart Cc: Mark Brown , Hans de Goede , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Cezary Rojewski , Liam Girdwood , Jie Yang , Jaroslav Kysela , Takashi Iwai Subject: Re: [PATCH v1 3/4] ASoC: Intel: bytcr_rt5640: use devm_clk_get_optional() for mclk Message-ID: References: <20211006150442.16503-1-andriy.shevchenko@linux.intel.com> <20211006150442.16503-3-andriy.shevchenko@linux.intel.com> <31338a32-a870-4bf8-52ba-5204109cf974@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31338a32-a870-4bf8-52ba-5204109cf974@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2021 at 10:54:12AM -0500, Pierre-Louis Bossart wrote: > On 10/6/21 10:04 AM, Andy Shevchenko wrote: > > The devm_clk_get_optional() helper returns NULL when devm_clk_get() > > returns -ENOENT. This makes things slightly cleaner. The added benefit > > is mostly cosmetic. ... > > if (SND_SOC_DAPM_EVENT_ON(event)) { > > - if (byt_rt5640_quirk & BYT_RT5640_MCLK_EN) { > > same comment as for rt5651, I don't see the point of removing the test > on this quirk? Same answers. -- With Best Regards, Andy Shevchenko