From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB60636681B; Tue, 10 Feb 2026 14:50:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770735033; cv=none; b=thameYxRaudusscWOxG6ri7+XWpeFcs3Z3fK3pf5w8FsWSeip1AIAm5ypKj2seTozC85zs9gjTGxOhep+JBKN4fwCnP58iT9ExHdjwC1nixUSloa3F+1WDwiSgq2X2jlUbHLavA4adstml35/backeTBYxxKTcbgI2KeeENph8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770735033; c=relaxed/simple; bh=Ay0a5yt0KAk0KqvUofnnt7ru3ngDlacuX/N01eIYONs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mWzlhYbo6Z4mrxTHfTsKagS2HteqpWMRbmqXa6RhAaFq3BOwRHdfqDhBR1bSr/429a0k/ou+WmT3Oh+k6/BAQUiuFiuytYECxTEbn5D+Bvrl6hFYUXEJuRCaQ+aJsK2Px/5l7aP1sKzt1b1c6lu5kj07aIwlyhiftj04ZKGeCRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lXl8h50V; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lXl8h50V" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770735032; x=1802271032; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ay0a5yt0KAk0KqvUofnnt7ru3ngDlacuX/N01eIYONs=; b=lXl8h50VebY513Vu8otROqRh6sTOnfisYFMWjPUhjLtTJsWi1H+r093r 3R0kTmVcQ8IhmF4G3Qffzm4WmG6vI9w2JLxuKHW8KOYqhGhD9GPVRSVe4 Y8IhKdXEUXsjgGZx4F/3wKTvWU/knS2+MR7/bLfVqcCiBQ9TKvFbnBAiB H/x4nH584Ct61BEK7+VtmsUfajzfVS0XlqFWqbJRVjUUqEHq19laiIBoS SGc9obO9iMZ0ahZnIGesv6hKl8FUsdGdozmfzEIPhuSwkF47R0uVFsYRP lp0GI14y+BqdkjJJKn2Spp+8kjyfWQFvC57zK7yFsWTPt5U6xVfPPMcRS w==; X-CSE-ConnectionGUID: +zUjBMAlR0ie7RVBMx2o6g== X-CSE-MsgGUID: Iq3VOOzvQ7aGmZzUg3q7FA== X-IronPort-AV: E=McAfee;i="6800,10657,11697"; a="71757908" X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="71757908" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2026 06:50:31 -0800 X-CSE-ConnectionGUID: MBJ4Y3sORl+ULAXzXvrZHQ== X-CSE-MsgGUID: 5KMPrUf0Ray1/Mka9vaqOw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="211429637" Received: from egrumbac-mobl6.ger.corp.intel.com (HELO localhost) ([10.245.244.39]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2026 06:50:28 -0800 Date: Tue, 10 Feb 2026 16:50:26 +0200 From: Andy Shevchenko To: Oleksij Rempel Cc: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Andy Shevchenko , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , David Jander Subject: Re: [PATCH v6 05/12] iio: dac: ds4424: use device match data for chip info Message-ID: References: <20260210135110.2027073-1-o.rempel@pengutronix.de> <20260210135110.2027073-6-o.rempel@pengutronix.de> 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: <20260210135110.2027073-6-o.rempel@pengutronix.de> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Tue, Feb 10, 2026 at 02:51:03PM +0100, Oleksij Rempel wrote: > Refactor the driver to use device match data instead of checking ID enums > in a switch statement. > > Define a `ds4424_chip_info` structure to hold variant-specific attributes > (currently just the channel count) and attach it directly to the I2C and > OF device ID tables. > > This simplifies the probe function and makes it easier to add support for > new variants like DS4402/DS4404. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko