From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=none 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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