Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp483981rdh; Thu, 23 Nov 2023 09:06:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFGdUAINZ6WHsNpJE1ugR9AWjjXHy8JSR8ws49Ebn0/A8CGuzp8+ysjS4Mi9G3V2XMrYw5 X-Received: by 2002:a05:6a20:8f1a:b0:18b:962c:1ddf with SMTP id b26-20020a056a208f1a00b0018b962c1ddfmr206895pzk.56.1700759218555; Thu, 23 Nov 2023 09:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700759218; cv=none; d=google.com; s=arc-20160816; b=K1b6xK/5vYUHSZQMjCpo35hIvs2tZDs4MK00v25mV3jFI01+aTS9FsDwpklI/vK235 cdudhhofavwkS0V92gGIicHCzSTUBCaAnaDo+rLX7VUMfZR5OSbCRzzDkNm+stw/Fs8q k2pUhekxkDRqbg81fuyIUGEy553EKZ2G5qO6Ec5R1V3zQ5BIxAB/4RS2pBFA6bBTEXlb GRRx2FpIg0tXL0u6at6G5rBi4k5UIkKt5cMahcAhBHKZ++SYv8Z4zqH5FMrGL3KZd0kU fOfRi9FysPT7EoGgr1Useus/8sY8NNkeo4rOAV4Ferm1Rv4JwvInGpKtSPiS4f3Ulq15 m2xQ== 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=jNmzviblzbC+dbuygsIREUu9s6q6s9XICTNjuAbbhiI=; fh=8hLf8JgDtZul9jrRqQvZF7sfUaEiG8a+w5FO+ttbP6g=; b=oDgn8FKHuMCIhf6uUFT7cba2zs8co7Tyo9sARzbL0EDdMv7cT4/7R1oKP+UWLPUJrf /w9C7ZISNRrGL5HKZBQjIAfhziCXBIZ9YWFntuY29+Jp0bQxNxPxkK2v0b12iepmBm6y rrolyfCO0IEgSywI5x2C5EoCq4ZyTPcMyGHAm1l870vfBA6Wy00WhMJZvt+fxWxb9Ssl fXAOYVajhTsV6StX8Fg5WLPR7Y/iU5XVhpIJF77yAQcXrDMAUUAWMMlHTq0joTagiAa7 Uzc3yHQ22hGn0OOfCbXIlhq26IkWFnJWyN4KfVRJFnJVb9DXn+PNZk0/vKKKuOLfygDI 9dGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cl7-20020a056a02098700b005c1ce3c961bsi1673757pgb.745.2023.11.23.09.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:06:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5CE22809AF99; Thu, 23 Nov 2023 09:06:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229462AbjKWRG3 (ORCPT + 99 others); Thu, 23 Nov 2023 12:06:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjKWRG1 (ORCPT ); Thu, 23 Nov 2023 12:06:27 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1C931BE; Thu, 23 Nov 2023 09:06:33 -0800 (PST) X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="389448692" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208";a="389448692" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 09:06:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="796376621" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208";a="796376621" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 09:06:27 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1r6D9j-0000000GQ9P-1JPi; Thu, 23 Nov 2023 19:06:23 +0200 Date: Thu, 23 Nov 2023 19:06:23 +0200 From: Andy Shevchenko To: mitrutzceclan Cc: linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org, Lars-Peter Clausen , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Walle , Arnd Bergmann , ChiaEn Wu , Niklas Schnelle , Leonard =?iso-8859-1?Q?G=F6hrs?= , Mike Looijmans , Haibo Chen , Hugo Villeneuve , Ceclan Dumitru , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 2/2] iio: adc: ad7173: add AD7173 driver Message-ID: References: <20231123152331.5751-1-user@HYB-hhAwRlzzMZb> <20231123152331.5751-2-user@HYB-hhAwRlzzMZb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:06:56 -0800 (PST) On Thu, Nov 23, 2023 at 06:47:26PM +0200, Andy Shevchenko wrote: > On Thu, Nov 23, 2023 at 05:23:22PM +0200, mitrutzceclan wrote: ... > > +static int ad7173_free_config_slot_lru(struct ad7173_state *st) > > > +static int ad7173_load_config(struct ad7173_state *st, > > + struct ad7173_channel_config *cfg) > > Have you checked, btw, list_lru.h? Maybe all this can be simply changed by > using existing library? Okay, it seems specific to MM, but maybe there something similar done which can be split into generic LRU library? In any case it seems too much for this nice series, so can you just add a comment on top of these functions to mention that it may be switched to a generic LRU implementation if one exists? -- With Best Regards, Andy Shevchenko